summaryrefslogtreecommitdiffstats
path: root/files.gumx.cc/upload.html
diff options
context:
space:
mode:
Diffstat (limited to 'files.gumx.cc/upload.html')
-rw-r--r--files.gumx.cc/upload.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files.gumx.cc/upload.html b/files.gumx.cc/upload.html
index e82bd96..d190474 100644
--- a/files.gumx.cc/upload.html
+++ b/files.gumx.cc/upload.html
@@ -41,7 +41,7 @@ button { cursor: pointer; }
<p><button onclick="upload()">upload</button></p>
<p id="result"></p>
<h2>curl</h2>
-<pre><code>curl -F "file=@photo.jpg" -H "Authorization: Bearer YOUR_TOKEN" https://files.gumx.cc/</code></pre>
+<pre><code>curl -F "file=@photo.jpg" -H "Authorization: YOUR_TOKEN" https://files.gumx.cc/</code></pre>
</main>
<footer>
<hr>
@@ -68,7 +68,7 @@ async function upload() {
fd.append('file', file);
const r = await fetch('/', {
method: 'POST',
- headers: { 'Authorization': 'Bearer ' + token },
+ headers: { 'Authorization': token },
body: fd
});
const text = await r.text();