Function: uploadPdfDocument()
uploadPdfDocument(
agent,file):Promise<UploadBlobResult>
Defined in: web/lib/atproto/record-creator.ts:186
Upload a PDF document to the user's PDS.
Parameters
agent
Agent
Authenticated ATProto Agent
file
File
PDF file to upload
Returns
Promise<UploadBlobResult>
Upload result with BlobRef
Throws
Error if file is not a PDF
Example
const result = await uploadPdfDocument(agent, pdfFile);
// Use result.blobRef in preprint record