uploadImage abstract method
Future<Result<UploadedFile> >
uploadImage(
- AttachmentFile image, {
- ProgressCallback? onProgress,
- CancelToken? cancelToken,
Uploads an image file to the CDN.
The image
must be a valid image file. Upload progress can be tracked
using onProgress
, and the operation can be cancelled using cancelToken
.
Returns a Result containing the UploadedFile information or an error.
Implementation
Future<Result<UploadedFile>> uploadImage(
AttachmentFile image, {
ProgressCallback? onProgress,
CancelToken? cancelToken,
});