mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-19 13:37:37 +00:00
fix: macOS error 50 on uploading files (#6853)
This commit is contained in:
parent
f013bb9d6e
commit
2ad2a79bd0
@ -323,8 +323,7 @@ class FileBlockComponentState extends State<FileBlockComponent>
|
|||||||
FileUrlType urlType,
|
FileUrlType urlType,
|
||||||
String url,
|
String url,
|
||||||
) async {
|
) async {
|
||||||
if ([FileUrlType.cloud, FileUrlType.network].contains(urlType) ||
|
if ([FileUrlType.cloud, FileUrlType.network].contains(urlType)) {
|
||||||
UniversalPlatform.isDesktopOrWeb) {
|
|
||||||
await afLaunchUrlString(url);
|
await afLaunchUrlString(url);
|
||||||
} else {
|
} else {
|
||||||
final result = await OpenFilex.open(url);
|
final result = await OpenFilex.open(url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user