fix(llc): fix not able to upload attachmentFile without name.
Signed-off-by: Sahil Kumar <xdsahil@gmail.com>
This commit is contained in:
@@ -74,13 +74,13 @@ class AttachmentFile {
|
|||||||
if (CurrentPlatform.isWeb) {
|
if (CurrentPlatform.isWeb) {
|
||||||
multiPartFile = MultipartFile.fromBytes(
|
multiPartFile = MultipartFile.fromBytes(
|
||||||
bytes!,
|
bytes!,
|
||||||
filename: name,
|
filename: name ?? 'file',
|
||||||
contentType: mimeType,
|
contentType: mimeType,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
multiPartFile = await MultipartFile.fromFile(
|
multiPartFile = await MultipartFile.fromFile(
|
||||||
path!,
|
path!,
|
||||||
filename: name,
|
filename: name ?? 'file',
|
||||||
contentType: mimeType,
|
contentType: mimeType,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user