I have an image in a URL like https://i.postimg.cc/GpDskmSG/sdssds.png and I want to send it over to be stored at nft.storage. Could I send it directly as a URL instead of a file from a path? I tried the below but it only stores the image URL.
The first thing just download the file, then itās | piped into the input of the second one, note the --data-binary @-, @ means āRead content from a fileā rather than actually reading the string and - is the STD, here stdin (whats coming from pipe).
This require | to work correctly (work like on bash) so you should use mingw, or WSL2.
And also, I supposed to do this programmatically using PHP, could it support the pipe symbol? OR should I just call the curl twice? First to download the file and second to upload to ipfs?