ibm-cloud-docs / cloud-object-storage

cloud-object-storage
15 stars 46 forks source link

Upload with curl -d/--data vs --data-binary #180

Closed SaschaSchwarze0 closed 6 months ago

SaschaSchwarze0 commented 8 months ago

Under https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-curl#curl-put-object, the sample curl command uses -d/--data which is imo mis-leading here.

The typical use case probably is that I upload a file, but for that to be uploaded without corruption, I must use binary upload (--data-binary @"<file-path>").

dpdresse commented 6 months ago

Reviewed with COS developer and discussed that -d is a reasonable example. As for data integrity, one can use content-md5 or whatever their preferred method is. The developers feels that trying to add a bunch of unrelated / non-required headers in examples might over-complicate the example.

dpdresse commented 6 months ago

No change to curl example at this time.