-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileName and Path is showing null #62
Comments
its urgent, anyone can fix this issue. |
@prasant10050 I may take a look into it tomorrow, but at a first glance it looks like you don’t gave the right permissions. What are the steps to reproduce this? |
I have already add Read and Write permission .
…On Thu, 28 Mar, 2019, 07:18 Miguel Ruivo, ***@***.***> wrote:
@prasant10050 <https://github.com/prasant10050> I may take a look into it
tomorrow, but at a first glance it looks like you don’t gave the right
permissions.
What are the steps to reproduce this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AM_5bQEGuDrYDn6tU3nj4IT1AJPEualvks5vbB94gaJpZM4cOXvP>
.
|
_openFileExplorer is called by onTap() method of Gesturedetector , before
it is called I added permission in iOS and Android.
…On Thu, 28 Mar, 2019, 07:18 Miguel Ruivo, ***@***.***> wrote:
@prasant10050 <https://github.com/prasant10050> I may take a look into it
tomorrow, but at a first glance it looks like you don’t gave the right
permissions.
What are the steps to reproduce this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AM_5bQEGuDrYDn6tU3nj4IT1AJPEualvks5vbB94gaJpZM4cOXvP>
.
|
I need further information on this. Do you have both given permissions in runtime and manifest file? Have you tried to clean your project, add Thank you. |
@prasant10050 this will be closed due to no further info. Feel free to re-open it with more details. Thank you. |
Hi, I'm workink with the version If I run on android:
and I select several files, I have the log:
and the results variable is null. Note that if I select only one file, everything works correctly. If you need more information don't hesitate. |
@Peltoche can you tell me which Android version are you running on? Does that happen in the example app as well? Thank you. |
Yep, I can reproduce with the example. For the emulator:
For the flutter version:
|
@Peltoche and you're selecting multiple pdf files, right? I'll check this ASAP and keep you updated. Thank you. |
hi @miguelpruivo , I am facing the same issue of File Path = null . Please refer attached screenshots for more details after selecting DL.csv file I am getting the following log I/flutter ( 7855): /data/data/com.example.test_dl/app_flutter Note that to check compatibility with old android devices, I have used Android 4.4.4 device Also, note that this happens only when I selected a file by using "File Manager". But when I try to get Image file path using "Gallery" then I get a valid path as follows I/flutter ( 7855): /data/data/com.example.test_dl/app_flutter Please help how to resolve this issue of File Path = null . when using "File manager" Thanks , |
@GauravPatni thank you for your feedback. Is this a custom file manager (aka 3rd party) installed on the device? Because if it is, there are known issues where 3rd party file managers, handle the path differently and doesn’t returns it as it should, and thus, I return @Peltoche I've tried it right now with the exact same steps (same emulator, version and picking type) of you, and it works flawlessly. Mind I ask you if you are using a custom file picker? Or the default native one? |
Nop, I don't think so. |
@Peltoche, I’m not able to reproduce your issue. Can you screen record it so I can get a deeper understanding of what may be causing it? Thank you. |
I have stopped my project and I don't think I will have the time soon, sorry. Maybe one week-end I will put a video or a PR. |
Hi Maybe have a look here: Here's the error message: |
Video: file_picker_issue.zip It seems, I have the same problem on my device
As you can see in the video (attached as zip), if I select just one file in file_picker dialog it works, but where I try to add 3 files (in this case) with multiple select no one will be added and I see this error in the console:
|
@robinmaass that's odd because I've been running it on api 28 without a problem. Do you have your app with Android X support? Because that's a requirement in order for it to work. @bunnywrote I've removed the writing/reading permissions in Thank you. |
I downgraded file_picker package to 1.3.5, but have the same error, BUT if try to select mutiple files not in Downloads folder (Camera in my case) it works |
@bunnywrote and with |
It works with 1.3.6 as well. Also in my case it seems to be an issue just for multiselect in Downloads folder. |
@bunnywrote @robinmaass can you please check the fix already on
Don't forget to Thank you. |
Hey Miguel Happy to tell you that beta works now on android with multiselect (also from download folder and also with different file types). Tested on Tab s4. Great work. Thank you! |
Fixed in Feel free to reopen it if you still find any issue related to this. |
I m facing this issue again java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/335 |
this issue is happening of Infinix Note 5 android 10, how to solve this, Help Please |
Hi
this is the log :
other fields are ok and have value but path is null
|
@xzghx on web you need to use |
@miguelpruivo we have also try bytes to upload image from web still same error |
What do you mean by the same error? The error above is referring to |
yes, we are getting path null |
@arjun-ckpatel like I said, you can't use paths on web. You need to use the |
how are we supposed to upload file with file.bytes ? |
Using a multipart file. There a few examples around here. |
any solution yet? |
_openFileExplorer() async {
if (_pickingType != FileType.CUSTOM || _hasValidMime) {
try {
if (_multiPick) {
_path = null;
_paths = await FilePicker.getMultiFilePath(type: _pickingType, fileExtension: _extension);
} else {
_paths = null;
_path = await FilePicker.getFilePath(type: _pickingType, fileExtension: _extension);
}
} on PlatformException catch (e) {
print("Unsupported operation" + e.toString());
}
if (!mounted) return;
}
I/FilePicker(11562): [SingleFilePick] File URI:content://com.android.providers.downloads.documents/document/235
E/FilePickerUtils(11562): Getting for API 19 or abovecontent://com.android.providers.downloads.documents/document/235
E/FilePickerUtils(11562): Document URI
E/FilePickerUtils(11562): Downloads External Document URI
E/FilePickerUtils(11562): Something went wrong while retrieving document path: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/235
E/FilePickerUtils(11562): Something went wrong while retrieving document path: java.lang.SecurityException: Permission Denial: reading com.android.providers.downloads.DownloadProvider uri content://downloads/all_downloads/235 from pid=11562, uid=10292 requires android.permission.ACCESS_ALL_DOWNLOADS, or grantUriPermission()
I/FilePickerUtils(11562): Remote file loaded and cached at:/data/user/0/com.cbtech.cb_curemantra/cache/null
I/FilePicker(11562): Absolute file path:/data/user/0/com.cbtech.cb_curemantra/cache/null
I/flutter (11562): Path File: '/data/user/0/com.cbtech.cb_curemantra/cache/null'
I/flutter (11562): FileName null
V/PhoneWindow(11562): DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@5e1c312, this = DecorView@c7bbae3[MainActivity]
D/Surface (11562): Surface::connect(this=0x75f615a000,api=1)
D/mali_winsys(11562): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
D/Surface (11562): Surface::connect(this=0x75f615b000,api=1)
D/mali_winsys(11562): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
I/flutter (11562): null
The text was updated successfully, but these errors were encountered: