comAtprotoRepoUploadBlob function
Upload 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.
Implementation
Future<XRPCResponse<RepoUploadBlobOutput>> comAtprotoRepoUploadBlob({
required Uint8List bytes,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $parameters,
}) async => await $ctx.post(
ns.comAtprotoRepoUploadBlob,
headers: {'Content-type': '*/*', ...?$headers},
parameters: $parameters,
body: bytes,
to: const RepoUploadBlobOutputConverter().fromJson,
);