@ -59,6 +59,17 @@
{" delete_key" :" ..." ," expiry" :" 0" ," filename" :" f34h4iu.jpg" ," mimetype" :" image/jpeg" ,
" sha256sum" :" ..." ," size" :" ..." ," url" :" {{ steurl }}/f34h4iu.jpg" }< / code > < / pre >
< h3 > Overwriting a file< / h3 >
< p > To overwrite a file you uploaded, simply provide the < code > Linx-Delete-Key< / code > header with the original file's deletion key.< / p >
< p > < strong > Example< / p > < / strong >
< p > To overwrite myphoto.jpg< / p >
< pre > < code > $ curl -H " Linx-Delete-Key: mysecret" -T myphoto.jpg {{ siteurl }}upload/
{{ siteurl }}myphoto.jpg< / code > < / pre >
< h3 > Deleting a file< / h3 >
< p > To delete a file you uploaded, make a DELETE request to < code > {{ siteurl }}yourfile.ext< / code > with the delete key set as the < code > Linx-Delete-Key< / code > header.< / p >