Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to upload files with absolute path? #255

Open
xx88xx opened this issue May 3, 2024 · 1 comment
Open

Possible to upload files with absolute path? #255

xx88xx opened this issue May 3, 2024 · 1 comment

Comments

@xx88xx
Copy link

xx88xx commented May 3, 2024

  • telegram-upload version:
    0.7.1

  • Python version:
    3.10.12

  • Operating System:
    Linux - Ubuntu

  • Dependencies list (run pip freeze):

blinker==1.4
click==8.1.7
command-not-found==0.3
cryptg==0.4.0
cryptography==3.4.8
dbus-python==1.2.18
distro==1.7.0
distro-info==1.1+ubuntu0.2
hachoir==3.3.0
httplib2==0.20.2
importlib-metadata==4.6.4
inotify-simple==1.3.5
jeepney==0.7.1
keyring==23.5.0
launchpadlib==1.10.16
lazr.restfulclient==0.14.4
lazr.uri==1.0.6
more-itertools==8.10.0
netifaces==0.11.0
oauthlib==3.2.0
prompt-toolkit==3.0.43
pyaes==1.6.1
pyasn1==0.6.0
PyGObject==3.42.1
PyJWT==2.3.0
pyparsing==2.4.7
PySocks==1.7.1
python-apt==2.4.0+ubuntu3
PyYAML==5.4.1
rsa==4.9
SecretStorage==3.3.1
six==1.16.0
systemd-python==234
telegram-upload==0.7.1
Telethon==1.35.0
ubuntu-pro-client==8001
ufw==0.36.1
unattended-upgrades==0.1
wadllib==1.3.6
watchdog==4.0.0
wcwidth==0.2.13
zipp==1.0.0

Description

upload a file with absolute path instead of file name in current folder

What I Did


User@Desktop-User:~$ telegram-upload \home\user\_userfiles\a1111\outputs\txt2img-images\2024-05-04\00001-1765146590.png
File "homeuser_userfilesa1111outputstxt2img-images2024-05-0400001-1765146590.png" does not exist.
[Error] telegram-upload Exception:
MissingFileError: Files do not exist.

Would it possible to make $ telegram-upload [absolute path to file] work?

Eg. telegram-upload \home\user\photos\demo.jpg

@kasie-zhang
Copy link

Wrap the path in double quotes.

The command looks like: telegram-upload "/home/user/photos/demo.jpg"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants