place.hud.uploadAppBlob

Upload a file for a frame app (a picture, a recording, or another file as application/octet-stream, the person chose) to the person's PDS as their blob, for an entry they write next. Its Content-Type is a type one of the app's kinds takes (a blob field's accept), the body its bytes, no larger than the largest maxSize the kinds give that type. Checked before the PDS hears of it: the app, the type and size, the bytes being that type, the person being one of its writers where it names them (with instance, one of the instance's writable members), the person having allowed the app (place.hud.allowAppEntries) and their sign-in asking to upload that type. An entry in a private instance referencing it, its PDS serves it only through the space (com.atproto.space.getBlob). 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.

Details · procedure
Kindprocedure
Authorityhud.place
Commit rev3n3knrck5esju
Indexed

Procedure

procedure · POST

Parameters

query string

app

string · at-uri

The app's place.hud.app record, its authority a DID or a handle.

instance

string · at-uri

A private instance of the app (at:space/<authority DID>/place.hud.app.instance/<key>), whose entry will hold it.

preview

string

A preview's id, in place of app: refused, as a preview saves nothing.

  • maxLength: 64

Input

*/*

Output

application/json

blob

requiredblob

The blob, as the PDS answered it: to put in an entry's data as it is.

Errors

InvalidRequest

Neither app nor preview given; or the file is not of a type the app's kinds take, is larger than they take, or its bytes are not that type.

NotAMember

With instance: the person is not one of its members, or there is no such instance.

CannotRead

With instance: the person's PDS gives no delegation token to read it with.

Preview

A preview's: it saves nothing.

NotFound

No such app, or this server took it down.

ConsentRequired

The person has not allowed the app to save their entries.

NotAWriter

The app names its writers, and the person is none of them.

BlobTooLarge

The body is over 10,000,000 bytes.

UpstreamFailure

The person's PDS could not be reached or refused the file; or their sign-in does not ask to upload this type, and the message says to sign in again.

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.

  • place.hud.uploadBlob

    procedure not from the namespace authority

    Upload an image, or a frame app's file, 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.

  • Save an entry for a frame app.

  • Stores a blob for the requesting user while the AppView hosts their space repos. A blob nothing references within a day is deleted.

  • Publish a frame app.