TF-3084 Handle drop image to identity editor for public asset
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
import 'package:model/upload/file_info.dart';
|
||||
import 'package:tmail_ui_user/features/upload/domain/model/mobile_file_upload.dart';
|
||||
|
||||
@@ -14,4 +15,12 @@ extension FileInfoExtension on FileInfo {
|
||||
type: type,
|
||||
isInline: true,
|
||||
isShared: isShared);
|
||||
|
||||
PlatformFile toPlatformFile() => PlatformFile(
|
||||
name: fileName,
|
||||
path: filePath,
|
||||
size: fileSize,
|
||||
bytes: bytes,
|
||||
readStream: readStream,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user