place.hud.uploadBlob

Upload an image (JPEG, PNG, WebP or HEIC, at most 2,000,000 bytes) to the person's PDS as their blob, as com.atproto.repo.uploadBlob does, for a record they write next (a post's images, a gallery's photos). With purpose app, one of a frame app's files for place.hud.publishApp instead: its document (text/html, UTF-8, at most 2,000,000 bytes), its words (application/json, an object, at most 512,000) or its icon (image/png or image/webp, at most 256,000). Never logged. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin) or a HUD access token as Bearer.

Repository @lexicons.hud.place did:plc:3tzbz4pml36u4mkresb6pdhv not from the namespace authority
Details · procedure
Kindprocedure
Authorityhud.place
Commit rev3n3jbjeotdoju
Indexed

Procedure

procedure · POST

Parameters

query string

purpose

string

app: one of a frame app's files, as its record takes them.

  • maxLength: 16
  • knownValues: app

Input

*/*

Output

application/json

blob

requiredblob

The blob, as the PDS answered it: to put in a record as it is.

Errors

InvalidRequest

The body is not a JPEG, PNG, WebP or HEIC image sent as one (Content-Type image/*); or, for an app, not a document, words or icon of a type and size its record takes.

BlobTooLarge

The body is over 2,000,000 bytes.

UpstreamFailure

The person's PDS could not be reached, refused the blob, or answered something that is not one.

AuthRequired

No live session, or its sign-in at the person's PDS ended: sign in again.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Upload a file a frame app's entry holds to the person's PDS.

  • Upload raw image bytes to the authenticated viewer's own PDS, mediated by the AppView using its server-held session (confidential OAuth client only). Mirrors com.atproto.repo.uploadBlob. The returned blob ref is passed into createPost, createComment, or putProfile to attach it to a record. This endpoint applies no per-context size limit beyond a generous ceiling — the PDS enforces the real limit (post/comment 5MB, avatar 1MB, banner 2MB) when the blob is actually attached to a record.

  • Publish a frame app.

  • Upload an image blob for scheduled posts. The blob is temporarily stored in Chronosky's storage and will be uploaded to Bluesky PDS when the scheduled post is published.

  • Uploads a picture to show in a pull, an issue or a comment, as the account logged in to this appview's pages.