Skip to content

Possible to upload files with absolute path? #255

Open

Description

@xx88xx
  • 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

Activity

  1. kasie-zhang commented on May 4, 2024

    @kasie-zhang

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions