diff options
| author | Ahmed <git@gumx.cc> | 2026-06-17 16:02:35 +0300 |
|---|---|---|
| committer | Ahmed <git@gumx.cc> | 2026-06-17 16:02:35 +0300 |
| commit | a9f342b85e8342c86e32e061bc1afb6669447353 (patch) | |
| tree | d61fbf9f8463d5a5a013ed8006a022282fd338ca /files.gumx.cc | |
| parent | c31605f40e512eae86b998609afcc083d8040530 (diff) | |
fix: 0x0 authorization
Diffstat (limited to 'files.gumx.cc')
| -rw-r--r-- | files.gumx.cc/body.html | 2 | ||||
| -rw-r--r-- | files.gumx.cc/upload.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/files.gumx.cc/body.html b/files.gumx.cc/body.html index 19e0bff..33ba33c 100644 --- a/files.gumx.cc/body.html +++ b/files.gumx.cc/body.html @@ -1,7 +1,7 @@ <p>File hosting via <a href="https://github.com/mia-0/0x0">0x0</a>. Uploads require a token.</p> <h2>upload</h2> <p>Use the <a href="/upload">web form</a> or curl:</p> -<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> <p>Files expire after 24 hours by default. Max 256 MB.</p> <h2>access</h2> <p>Contact <a href="mailto:hi@gumx.cc">hi@gumx.cc</a> to request a token.</p> 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(); |
