uploadBlob method

Future<XRPCResponse<RepoUploadBlobOutput>> uploadBlob({
  1. required Uint8List bytes,
  2. Map<String, String>? $headers,
  3. Map<String, String>? $parameters,
})

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>> uploadBlob({
  required Uint8List bytes,
  Map<String, String>? $headers,
  Map<String, String>? $parameters,
}) async => await comAtprotoRepoUploadBlob(
  bytes: bytes,
  $parameters: $parameters,
  $ctx: _ctx,
  $headers: $headers,
);