Table of Contents

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

fileData Stream

Stream of bytes to upload.

attachment Attachment

The associated attachment metadata.

Returns

Task

A task that completes when the upload is finished.

Remarks

The caller owns and disposes the stream.