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: assert on uploading image on macos (#5272)

Lucas.Xu287c69a4fb8c
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/upload_image_file_widget.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/upload_image_file_widget.dart
index 7f6324531c..8c727ac4d5 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/upload_image_file_widget.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/upload_image_file_widget.dart
@@ -40,7 +40,7 @@ class UploadImageFileWidget extends StatelessWidget {
// on desktop, the users can pick a image file from folder
final result = await getIt<FilePickerService>().pickFiles(
dialogTitle: '',
- type: FileType.image,
+ type: FileType.custom,
allowedExtensions: allowedExtensions,
);
onPickFile(result?.files.firstOrNull?.path);