TF-3514 Detect base64 image to transfer it to cid attachment
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class MobileFileUpload with EquatableMixin {
|
||||
final String fileName;
|
||||
final String filePath;
|
||||
final int fileSize;
|
||||
final String mimeType;
|
||||
|
||||
MobileFileUpload(
|
||||
this.fileName,
|
||||
this.filePath,
|
||||
this.fileSize,
|
||||
this.mimeType
|
||||
);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
fileName,
|
||||
filePath,
|
||||
fileSize,
|
||||
mimeType,
|
||||
];
|
||||
}
|
||||
@@ -42,10 +42,10 @@ class UploadAttachment with EquatableMixin {
|
||||
|
||||
final attachment = await fileUploader.uploadAttachment(
|
||||
uploadTaskId,
|
||||
_progressStateController,
|
||||
fileInfo,
|
||||
uploadUri,
|
||||
cancelToken: cancelToken
|
||||
cancelToken: cancelToken,
|
||||
onSendController: _progressStateController,
|
||||
);
|
||||
|
||||
log('UploadAttachment::upload: ATTACHMENT_UPLOADED = $attachment');
|
||||
|
||||
Reference in New Issue
Block a user