Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Switching --data-binary to --upload-file for file uploads

...

Example

Code Block
$ curl --dataupload-binaryfile "@imageimage.png" "http://localhost:8080/rest/fcr:new/fcr:content?checksum=urn:sha1:5441456941dd8b3ee0832b991ee93ba0c0a558f7"
-> 201 Created
 
$ curl --dataupload-binaryfile "@imageimage.png" "http://localhost:8080/rest/fcr:new/fcr:content?checksum=urn:sha1:bad-checksum"
-> 409 Conflict
urn:sha1:bad-checksum did not match urn:sha1:5441456941dd8b3ee0832b991ee93ba0c0a558f7

...