skip to Main Content

Flutter Firebase: How to upload multiple images?

I've this Button to select images: IconButton( onPressed: () async { final results = await FilePicker.platform.pickFiles( allowMultiple: true, type: FileType.custom, allowedExtensions: ['png', 'jpg'], ); if (results == null) { ScaffoldMessenger.of(context).showSnackBar( const SnackBar( content: Text("No Image selected") ), ); return null;…

VIEW QUESTION

Flutter File picker platformException

Hello i would like to ask, is there a way to resolve this platform exption while picking files from google drive I/flutter ( 2761): Error while picking file: PlatformException(unknown_path, Failed to retrieve path., null, null) class _FilePickerScreenState extends State<FilePickerScreen> {…

VIEW QUESTION

Flutter filepicker android singleInstance mode it is returns file path as null

I am using the flutter file picker 6.0.0.When i try to select file from the picker file.I used singleInstance in manifest. FilePickerResult? result = await FilePicker.platform.pickFiles(allowedExtensions: ['jpg','jpeg','png','pdf'],type: FileType.custom); if (result != null) { File file = File(result.files.single.path!); controller.isPasswordProtected.value = await…

VIEW QUESTION
Back To Top
Search