It is good to add newline at the end of response link #72

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

Originally created by @ochaton on GitHub.

transfer.sh is wonderfully convenient to use as simple private file hosting to move files from server to server.
Usually, file is uploaded using curl, ex: curl -T </path/to/file> <transfer_sh_endpoint> but created link is returned without newline, so it is not easy to copy.

Many users, I suppose, add extra flags curl -T </path/to/file> -w '\n' <transfer_sh_endpoint> but it is not comfortable.

Is it okey, to add newline to the response?

Originally created by @ochaton on GitHub. transfer.sh is wonderfully convenient to use as simple private file hosting to move files from server to server. Usually, file is uploaded using `curl`, ex: `curl -T </path/to/file> <transfer_sh_endpoint>` but created link is returned without newline, so it is not easy to copy. Many users, I suppose, add extra flags `curl -T </path/to/file> -w '\n' <transfer_sh_endpoint>` but it is not comfortable. Is it okey, to add newline to the response?
Author
Owner

@paolafrancesca commented on GitHub:

but created link is returned without newline, so it is not easy to copy.

indeed it's easy with

curl -T </path/to/file> <transfer_sh_endpoint> | pbcopy

(that's for mac, there are equivalente on other platform)

@paolafrancesca commented on GitHub: > but created link is returned without newline, so it is not easy to copy. indeed it's easy with ``` curl -T </path/to/file> <transfer_sh_endpoint> | pbcopy ``` (that's for mac, there are equivalente on other platform)
Author
Owner

@paolafrancesca commented on GitHub:

hello @ochaton , long time discussed: we won't make any change on the backend.
there's plenty of options for users to add the newline on the client side, sorry :)

@paolafrancesca commented on GitHub: hello @ochaton , long time discussed: we won't make any change on the backend. there's plenty of options for users to add the newline on the client side, sorry :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#72