From 2d7e013b47051bff8f2f260fc34f58c1178ced4b Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Fri, 22 Nov 2024 13:44:50 -0600 Subject: [PATCH] BUD-02 require the file extension in the url field --- buds/02.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buds/02.md b/buds/02.md index 230ecad..6d8519c 100644 --- a/buds/02.md +++ b/buds/02.md @@ -12,12 +12,14 @@ Defines the `/upload`, `/list` and `DELETE /` endpoints A blob descriptor is a JSON object containing `url`, `sha256`, `size`, `type`, and `uploaded` fields -- `url` A publicly accessible URL to the [BUD-01](./01.md#get-sha256---get-blob) `GET /` endpoint (optionally with a file extension) +- `url` A publicly accessible URL to the [BUD-01](./01.md#get-sha256---get-blob) `GET /` endpoint with a file extension - `sha256` The sha256 hash of the blob - `size` The size of the blob in bytes - `type` (optional) The MIME type of the blob - `uploaded` The unix timestamp of when the blob was uploaded to the server +Servers MUST include a file extension in the URL in the `url` field to allow clients to easily embed the URL in social posts or other content + Servers MAY include additional fields in the descriptor like `magnet`, `infohash`, or `ipfs` depending on other protocols they support Example: