Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

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

Lucas2ad2a79bd013
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart
index 7077352c59..f0af6e77ea 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/file/file_block_component.dart
@@ -323,8 +323,7 @@ class FileBlockComponentState extends State<FileBlockComponent>
FileUrlType urlType,
String url,
) async {
- if ([FileUrlType.cloud, FileUrlType.network].contains(urlType) ||
- UniversalPlatform.isDesktopOrWeb) {
+ if ([FileUrlType.cloud, FileUrlType.network].contains(urlType)) {
await afLaunchUrlString(url);
} else {
final result = await OpenFilex.open(url);