-
public interface Uploader<C extends UploadContext>The Uploader is responsible for uploading files.
-
-
Method Summary
Modifier and Type Method Description abstract Result<UploadedFile>upload(UploadPayload<C> payload, Function1<Double, Unit> progress)Uploads a file and returns the information of the uploaded remote file. -
-
Method Detail
-
upload
abstract Result<UploadedFile> upload(UploadPayload<C> payload, Function1<Double, Unit> progress)
Uploads a file and returns the information of the uploaded remote file.
- Parameters:
payload- The payload containing the information about the file to upload.progress- A lambda that notifies about upload progress (from 0.0 to 1.0).
-
-
-
-