Support of the copy from remote URL option #7

Open
opened 2023-01-31 12:56:21 +00:00 by alexlehm · 1 comment

the curl api supports copying from a remote url without downloading to local first, which could be convenient for larger files.

pb could support this option by parsing if the source file is an url

./pb https://www.image.com/image.png

it can be done now with curl or lynx to get the image and then ./pb but it does not get the mime type correctly, you have to use -e png or so. The ttm client uses the mime type and makes the extension appropriately

the curl api supports copying from a remote url without downloading to local first, which could be convenient for larger files. pb could support this option by parsing if the source file is an url ./pb https://www.image.com/image.png it can be done now with curl or lynx to get the image and then ./pb but it does not get the mime type correctly, you have to use -e png or so. The ttm client uses the mime type and makes the extension appropriately
Author

though you can do the exact same thing with the curl command, so there is probably no advantage to wrap that into the script

though you can do the exact same thing with the curl command, so there is probably no advantage to wrap that into the script
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tomasino/pb#7
No description provided.