Update 96.md

This commit is contained in:
arthurfranca 2024-08-07 12:12:49 -03:00 committed by GitHub
parent 6de688f459
commit b3454246f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
96.md
View File

@ -84,7 +84,9 @@ See https://github.com/aljazceru/awesome-nostr#nip-96-file-storage-servers.
## Auth
When indicated, `clients` must add an [NIP-98](98.md) `Authorization` header (**optionally** with the encoded `payload` tag set to the base64-encoded 256-bit SHA-256 hash of the file - not the hash of the whole request body).
When indicated, `clients` must add an [NIP-98](98.md) `Authorization` header.
The NIP-98 event can **optionally** include the encoded `payload` tag set to the hex-encoded 256-bit SHA-256 hash of the file - not the hash of the whole request body.
The event may include multiple `u` tags to make it possible to reuse the same header for different servers.
## Upload
@ -94,7 +96,7 @@ When indicated, `clients` must add an [NIP-98](98.md) `Authorization` header (**
List of form fields:
- `file`: **REQUIRED** the file to upload
- `file`: **REQUIRED** the file to upload. It should be the last form field;
- `caption`: **RECOMMENDED** loose description;
- `expiration`: UNIX timestamp in seconds. Empty string if file should be stored forever. The server isn't required to honor this.
- `size`: File byte size. This is just a value the server can use to reject early if the file size exceeds the server limits.