Method UploadFileAsync
- Namespace
- PowerSync.Common.Attachments
- Assembly
- PowerSync.Common.dll
UploadFileAsync(Stream, Attachment)
Uploads a file to remote storage from a stream.
Task UploadFileAsync(Stream fileData, Attachment attachment)
Parameters
fileDataStreamStream of bytes to upload.
attachmentAttachmentThe associated attachment metadata.
Returns
- Task
A task that completes when the upload is finished.
Remarks
The caller owns and disposes the stream.