From 287c69a4fb8ca9d650517ff550af218aa10149cd Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Tue, 7 May 2024 09:11:35 +0800 Subject: [PATCH] fix: assert on uploading image on macos (#5272) --- .../editor_plugins/image/upload_image_file_widget.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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().pickFiles( dialogTitle: '', - type: FileType.image, + type: FileType.custom, allowedExtensions: allowedExtensions, ); onPickFile(result?.files.firstOrNull?.path);