Cannot upload images using input[type=file] through Android

Welcome! Forums Unity Plugins In-App Web Browser Cannot upload images using input[type=file] through Android

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • #413
    WizardOfOZ
    Participant

    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, 5 months ago by WizardOfOZ.
    • This topic was modified 6 years, 5 months ago by WizardOfOZ.
    #421
    PiotrPiotr
    Keymaster

    Hey,
    Let me look into that. Give me few days to get back to you.
    Thanks,
    Piotr

    #485
    wesworldwesworld
    Participant

    Hi 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!

    #553
    PiotrPiotr
    Keymaster

    Guys,
    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, 3 months ago by PiotrPiotr.
    #556
    theboosted1
    Participant

    Piotr, 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

    #561
    theboosted1
    Participant

    file uploads work great now on android, I’ll be testing ios soon. thank you again this is an incredibly useful plugin.

    #578
    sebastien
    Participant

    I have the same problem, can i have the beta test for the input[type=file] plz ?

    Thanks 🙂

    #584
    sebastien
    Participant

    I 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 🙂

    #585
    PiotrPiotr
    Keymaster

    Yeah, I need to install older version of Unity on other computer first, since on latest Mac OSX it stopped working 😐

    #649
    theboosted1
    Participant

    Hey 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?

    #653
    theboosted1
    Participant

    To 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.

    #654
    theboosted1
    Participant

    Here 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&#8221; alt=”IMG_0002″ border=”0″ />” alt=”ios image upload fails at this menu selection” />

    #659
    theboosted1
    Participant

    Started a new thread as this one relates to android

    #783
    universityofgames
    Participant

    Hello 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!

    #784
    PiotrPiotr
    Keymaster

    Sure, sent you an email. Have to finally release a patch 😉

Viewing 15 posts - 1 through 15 (of 29 total)
  • You must be logged in to reply to this topic.