Welcome! › Forums › Unity Plugins › In-App Web Browser › Cannot upload images using input[type=file] through Android
- This topic has 28 replies, 11 voices, and was last updated 4 years, 11 months ago by DanilaVanilla.
-
AuthorPosts
-
October 24, 2017 at 7:22 am #413WizardOfOZParticipant
Hi,
I’ve recently purchased your In-App Browser Unity plugin, and it helped me a lot. I needed to open a webpage for users to upload images to without exiting the app, and your plugin seemed like the perfect solution. In iOS everything works flawlessly, but in Android, file uploads seem to be disabled. When clicking on an input[type=file] field in Android through your In-App Browser, nothing happens. Regular buttons work with no problem. The website itself also works perfectly on Android through Chrome.
Is it a bug? Is there anything I’m doing wrong or could be doing differently for it to work?
Thanks a lot in advance.
- This topic was modified 6 years, 10 months ago by WizardOfOZ.
- This topic was modified 6 years, 10 months ago by WizardOfOZ.
October 31, 2017 at 12:33 pm #421PiotrKeymasterHey,
Let me look into that. Give me few days to get back to you.
Thanks,
PiotrNovember 29, 2017 at 6:19 am #485wesworldParticipantHi Piotr,
I’m also experiencing same problem with input[type=file] on Android. The default behavior in my mobile Chrome browser when clicked on input, displays a ‘Choose an action’ menu, with options like Android System, Video Camera, Sound recorder & Documents.
Does it require additional permissions in Manifest file? Currently I have external read/write uses-permission, and also added WebCamTexture & Microphone classes to my init script (granted access to both).
Looking forward to updates on this great plugin, thanks!
December 3, 2017 at 5:31 pm #553PiotrKeymasterGuys,
I’ve looked into it. This is something I had to implement by myself. I’ve sent both of you beta version of a plugin which opens file browser after clicking on file input. Check it out and let me know if it worked out for you. Thanks- This reply was modified 6 years, 9 months ago by Piotr.
December 5, 2017 at 8:03 pm #556theboosted1ParticipantPiotr, I am also looking for this functionality for image uploads in android, the browser works perfectly well for my needs otherwise. If you’d like another beta tester, Im your guy! I am building another app for a client and am trying to iron out the last few details.
Thank you again for creating such a good plug-in.Scott
December 8, 2017 at 3:50 pm #561theboosted1Participantfile uploads work great now on android, I’ll be testing ios soon. thank you again this is an incredibly useful plugin.
December 19, 2017 at 9:23 am #578sebastienParticipantI have the same problem, can i have the beta test for the input[type=file] plz ?
Thanks 🙂
December 19, 2017 at 3:38 pm #584sebastienParticipantI got an email from the admin with a version (who integrate input[type=file] from android) and it’s working great !!!
Thanks a lot ! Wonderful plugin !
PS : I think you can put it in prod 🙂
December 20, 2017 at 2:28 pm #585PiotrKeymasterYeah, I need to install older version of Unity on other computer first, since on latest Mac OSX it stopped working 😐
January 13, 2018 at 5:05 am #649theboosted1ParticipantHey piotr, just wanted to follow up and let you know android image uploads work great, I tested ios and file uploads do not work. In my specific situation, when i attempt to upload images, they fail and inappbrowser seems to quit when i select to upload an image (via ios gallery/ use camera options) inAppBrowser quits. any ideas?
January 14, 2018 at 5:33 pm #653theboosted1ParticipantTo clarify, when the default ios menu opens asking if you want to choose from the gallery or take a photo, and you make a selection, InAppBrowser closes, exposing the underlying scene.
January 14, 2018 at 6:21 pm #654theboosted1ParticipantHere is a screenshot of the selection menu. When picking any of these options including cancel, the browser closes. <img src="<img src=”https://preview.ibb.co/gnS7XR/IMG_0002.png” alt=”IMG_0002″ border=”0″ />” alt=”ios image upload fails at this menu selection” />
January 18, 2018 at 4:01 pm #659theboosted1ParticipantStarted a new thread as this one relates to android
February 27, 2018 at 1:21 pm #783universityofgamesParticipantHello Piotr, I don’t see that current plugin version support input[type=file]. Could you share us a latest release? We also have a similar demand in our project
Thanks!
February 27, 2018 at 8:38 pm #784PiotrKeymasterSure, sent you an email. Have to finally release a patch 😉
-
AuthorPosts
- You must be logged in to reply to this topic.