Document overwriting a file
This commit is contained in:
parent
6c9d517c80
commit
9ac016c3b5
|
@ -59,6 +59,17 @@
|
||||||
{"delete_key":"...","expiry":"0","filename":"f34h4iu.jpg","mimetype":"image/jpeg",
|
{"delete_key":"...","expiry":"0","filename":"f34h4iu.jpg","mimetype":"image/jpeg",
|
||||||
"sha256sum":"...","size":"...","url":"{{ steurl }}/f34h4iu.jpg"}</code></pre>
|
"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>
|
<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>
|
<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>
|
||||||
|
|
Loading…
Reference in New Issue