Skip to content

IUploadedFiles

Interface in Oadm.Sdk.Plugins · Oadm.Sdk.dll

Files the user uploaded from the client (firmware images, ACAP .eap packages). The dialog uploads with ITaskDialogContext.UploadAsync and puts the returned id into the payload; the task reads the file here. Uploads are kept in the server data folder and removed by the server after a retention period, never by plugins.

public interface IUploadedFiles

Guide: Task plugins

Task<UploadedFile?> FindAsync(string fileId, CancellationToken ct)

The uploaded file with this id; null when it is gone (uploads are deleted after a day).

Task<Stream> OpenReadAsync(string fileId, CancellationToken ct)

Opens the file for reading; the caller disposes the stream.