fix: macOS error 50 on uploading files (#6853)

This commit is contained in:
Lucas 2024-11-25 10:39:15 +08:00 committed by GitHub
parent f013bb9d6e
commit 2ad2a79bd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);