No URL returned after Upload #159

Closed
opened 2026-01-19 18:29:13 +00:00 by michael · 2 comments
Owner

Originally created by @Lorenz1508 on GitHub.

Hi
when i use this Command to upload a File it does not return any URL

find -name ""test".r*" -exec curl --progress-bar -O -T {} https://transfer.sh/{} \; | grep -oE 'https://transfer.sh/.*/test.r.{2}' > test.txt

After the files are uploaded successfully, the links are neither saved in test.txt nor displayed in the terminal !

Originally created by @Lorenz1508 on GitHub. Hi when i use this Command to upload a File it does not return any URL `find -name ""test".r*" -exec curl --progress-bar -O -T {} https://transfer.sh/{} \; | grep -oE 'https://transfer.sh/.*/test.r.{2}' > test.txt` After the files are uploaded successfully, the links are neither saved in test.txt nor displayed in the terminal !
Author
Owner

@paolafrancesca commented on GitHub:

hi @Lorenz1508 , you are using -O: Write output to a local file named like the remote file we get
It seems that, while not file is get, the output is saved to the local file named like the uploaded file.

You may want to report this to curl

@paolafrancesca commented on GitHub: hi @Lorenz1508 , you are using `-O`: `Write output to a local file named like the remote file we get` It seems that, while not file is get, the output is saved to the local file named like the uploaded file. You may want to report this to curl
Author
Owner

@paolafrancesca commented on GitHub:

also find will return the whole relative path as {} placeholder, not just the filename, ending in something like:
https://transfer.sh/./directory/filename.ext

Something like should work:

find -name ""test".r*" -exec sh -c 'curl --progress-bar  -T {} https://transfer.sh/"$(basename "{}")"' \;
@paolafrancesca commented on GitHub: also `find` will return the whole relative path as `{}` placeholder, not just the filename, ending in something like: `https://transfer.sh/./directory/filename.ext` Something like should work: ``` find -name ""test".r*" -exec sh -c 'curl --progress-bar -T {} https://transfer.sh/"$(basename "{}")"' \; ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#159