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

Hide the alert box asking to open Camera, Gallery, Data Structure #1217

Open
ArinaWik opened this issue Jul 4, 2022 · 5 comments
Open

Hide the alert box asking to open Camera, Gallery, Data Structure #1217

ArinaWik opened this issue Jul 4, 2022 · 5 comments

Comments

@ArinaWik
Copy link

ArinaWik commented Jul 4, 2022

Hey,

thanks for the great tool you have made. It makes really easy to upload necessary files!!!

My problem is I need to allow user to upload pdf/png and jpeg formats from the file structure. I pass these extensions to accept property and everything works perfect! However when I allow image types then the alert appears asking to open either Camera, Gallery or Data Structure. The problem is I show user before that the options to upload from Camera and Galery and double asking will not be user-friendly.

So the question is: Is it possible to allow accept= pdf,png,jpeg without showing that alert box and to open by default ONLY the data structure (no gallery/ no camera)

Any help will be appreciated....

Thanks

@joshterrill
Copy link
Contributor

What kind of device are you using this on?

@ArinaWik
Copy link
Author

ArinaWik commented Jul 7, 2022

hey,
thanks for your reply.
I use iOS (iphone 13 mini , iphone 12 PRO) and Android (Samsung).

@joshterrill
Copy link
Contributor

Maybe you could provide some screenshots of what you're wanting it to go to, because as far as I know, on iOS, I didn't think photos/videos were accessible from any app except for the native photos app, which requires you to explicitly grant access to at the point you open it for the first time (this is enforced by iOS, not the the library). Is there some other app/screen that will open to where you want it to without first going through the photos app to view photos?

@ArinaWik
Copy link
Author

ArinaWik commented Jul 7, 2022

IMG_F68073931CE0-1
On the first screenshot you can see that I have three options available (Camera(which opens Capacitor Ionic Camera Plugin and Gallery accordingly ).

By clicking Files I am using the ng2-file-upload Plugin to upload documents (and on the second screenshot you can see that it opens a default input type file alert again asking user to choose from Camera, Gallery or Select File).

So, the problem is I want to open only Select File View when the third option (File) from the first screenshot is selected. it happened only when in accept I pass pdf only, however the users want to be able to select both image and pdf from Select File View.

Sorry if I wrote the problem in wrong place:, I think its not the plugin issue but from input type=file, however might be you have some solution or might be it is controllable via the plugin?

Thank you again for your feedback!

@ArinaWik
Copy link
Author

ArinaWik commented Jul 7, 2022

IMG_F68073931CE0-2

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