Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This also works, but without "-T" curl will load the entire file into memory. Tip: if you need to write an unnamed stream you must input the file via stdin and use "-T -" to prevent curl from appending the filename.

curl -v -u "USER:PASSWORD" -XPOST -H "Content-type: application/zip" --data-binary @/tmp/myhugefile.zip "http://mydomain.example.com/mybucket/myhugefile.zip"

...

curl -v -u "USER:PASSWORD" -F upload=@/tmp/myhugefile.zip -F upload=@/tmp/foo.gif "http://mydomain.example.com/mybucket/"

*Don't forget the "@" before the filename! Note you can specify multiple files, but remember these files will use the Gateway spool directory. Note the URL is only the bucket (or a subdirectory-like path), the stream name will be based on the filename uploaded.

...

This is useful for uploading large files. You "initiate" the upload then upload each part of the file, then make a "complete" request. https://connect.caringo.com/system/files/docs/s/Multipart_Write_Example.html

...