Skip to content
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

open failed: EACCES (Permission denied) #55

Closed
DiFilosofa opened this issue Sep 8, 2024 · 1 comment
Closed

open failed: EACCES (Permission denied) #55

DiFilosofa opened this issue Sep 8, 2024 · 1 comment

Comments

@DiFilosofa
Copy link

DiFilosofa commented Sep 8, 2024

Hi i'm trying to use the library to pick the file and upload as multipart with retrofit.
If I pick the file in Documents or Images, folder the upload goes through fine.
But when I pick the file directly from /Downloads folder it gave me the error

java.io.FileNotFoundException: /storage/emulated/0/Download/2mb.png: open failed: EACCES (Permission denied)

I'm testing with Android 13

Upon the demo app, it can still display the images if I do the same thing.
Any idea what could be the issue, thank you in advance

val mimeTypes: List<String> = listOf("image/jpeg", "image/png", "image/jpg", "application/pdf")

FilePicker.Builder(requireContext())
                .pickDocumentFileBuild(
                    DocumentFilePickerConfig(allowMultiple = false, mMimeTypes = mimeTypes),
                )
@ChochaNaresh
Copy link
Owner

Hi @DiFilosofa

please test in sempal app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants