fix: download path for saving files
This commit is contained in:
parent
55fb318187
commit
48fb6aac0c
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ extension MatrixFileExtension on MatrixFile {
|
|||
final fileName = name.split('/').last;
|
||||
if (PlatformInfos.isMobile) {
|
||||
final tmpDirectory = PlatformInfos.isAndroid
|
||||
? Directory('/storage/emulated/0/Download')
|
||||
? Directory('/storage/emulated/0/Download/')
|
||||
: await getTemporaryDirectory();
|
||||
final path = '${tmpDirectory.path}$fileName';
|
||||
await File(path).writeAsBytes(bytes);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue