Issue 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 =
Continue readingTag: filepicker
FilePicker missing permission on Android 13 (Pixel 7)
Issue While I have no problem on past Android, on Android 13 (actually my Pixel 7) I get the following exception: PlatformException (PlatformException(read_external_storage_denied, User did not allow reading external storage, null, null)) While running my code as follows: final result
Continue readingUnable to save/upload files to a folder on server with Dio and File_picker flutter packages & I am doing this with PHP
Issue The problem I am facing is that the files I upload ta server are not being uploaded inside a folder but the filename is submitting into the database. I am providing all data related to selecting a file and
Continue readingFile_picker in stateless bloc widget
Issue How do you go about using file_picker package in flutter and bloc management? https://pub.dev/packages/file_picker I have following code: class NewAuction extends StatelessWidget { late final FilePickerResult? filePickerResults; final _formKey = GlobalKey<FormState>(); final _priceController = TextEditingController(); final _descriptionController = TextEditingController();
Continue readingFlutter – Just pick image and video using file picker
Issue I’m writing an application that uses file_picker to select photos and videos. I use FileType.custom and declare the extension to only select photos and videos. I want to get image to display with Image.file() and get video to display
Continue readingThe property 'files' can't be unconditionally accessed because the receiver can be 'null'
Issue Recently i made a file_picker using bloc builder, and then i couldn’t make a variable because there’s an error on this code: onTap: () async { FilePickerResult? result = await FilePicker.platform.pickFiles(); PlatformFile file = result.files.first; if (result != null)
Continue readingHow to display a fileName as string in Text flutter
Issue I have this upLoadFile() void here and when I pick the file I want to display the fileName that I just picked FOR EX. "img89004.png" in the Text(fileName!) code: String? fileName; void upLoadFile() async { final results = await
Continue reading2 positional argument(s) expected, but 1 found. and The argument type 'String?' can't be assigned to the parameter type 'List<Object>'
Issue I have been able to open my files using the file picker package but I am to save the result path to the pdfFile variable. This is the variable File? pdfFile; I am getting the error from the code
Continue readingSelect image for flutter web on mobile device
Issue Im currently using https://pub.dev/packages/file_picker for this function FilePickerResult result = await FilePicker.platform.pickFiles(); if (result != null) { setState(() { filePicked = result; }); for (int i = 0; i < result.files.length; i++) { setState(() { listBytes.add(result.files[i].bytes); }); } }
Continue readingHow to add a File Picker plugin in Flutter?
Issue I am creating a Flutter project in which, I have a piece of data (JSON) that I want to Import from and Export to a location the user wants to. In order to achieve this, I require a File
Continue reading