social.grain.repo.uploadBlob
Upload a blob to the logged-in account's PDS, for a record written after to reference. Called as social.grain.repo.createRecord is.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | repo.grain.social |
| Commit rev | 3n2mx2lznkrbg |
| Indexed |
Procedure
procedure · POSTInput
*/*Output
application/jsonErrors
ScopeMissingError
The account's PDS granted the session less than the upload needs.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
com.atproto.repo.uploadBlob
procedureUpload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS.
-
social.colibri.beta.polyfill.uploadBlob
procedureStores a blob for the requesting user while the AppView hosts their space repos. A blob nothing references within a day is deleted.
-
zone.stratos.repo.uploadBlob
procedureUpload a new blob, to be referenced from a Stratos repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by Stratos service.
-
app.didpic.write.uploadBlob
procedureUpload 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.
-
social.grain.repo.createRecord
procedureCreate a record in the logged-in account's repo, at its PDS, and index it before answering. For the web, by its session cookie, from a page of the site; a service token is refused (the apps write to their own PDS, then call social.grain.sync.refreshRecords).