mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
Update 96.md
This commit is contained in:
parent
6de688f459
commit
b3454246f4
6
96.md
6
96.md
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user