Open file upload from javascript
Reported by
miguel.s...@gmail.com,
Apr 10 2017
|
||||
Issue descriptionSteps to reproduce the problem: 1. On a mobile phone 2. http://stackoverflow.com/questions/43324130/open-file-upload-from-select-options-not-working-in-mobile What is the expected behavior? It should open the file upload? What went wrong? It does nothing, although it works good, in desktop. Did this work before? N/A Chrome version: 57.0.2987.132 Channel: stable OS Version: 6.0.1 Flash Version: This does not pose any security risk, since the user needs to confirm or click "so there is an intent or wish" of the user to click that option and upload a file. Anyway in desktop the behaviour works, so why not on mobile?
,
Apr 10 2017
Firefox also works but not on the latest versions aurora and beta for MAC. But version 52 it does. Is this a issue with the Mac OS / IOS or the browser?
,
Apr 15 2017
Hello Thanks for reporting the issue. Can you please attach the file and also provide your device details, like name, model? Also, please provide logcat/bugreport and video/screenshot of the issue, if any.
,
Apr 15 2017
You can test by your self, open that url on a desktop and you will see it will open the file upload dialog. Then open on any android i guess. I believe this is because the script is calling this events: Click on the [+] then trigger on change event of the select element, which shows a dialog, and then, trigger a click event on a hidden file upload html input file type. And is the particular click event of the input file type that is not triggered maybe because its not a "direct" click.. Although in this case the on change is caused from an user interaction, and thus, can be considered as original from user input so.. that "context" should be passed on and allowed to create a simulated click on a secundary btn in this case the hidden file upload. This looks to be very different across browser, but either way i believe this should work that would be the correct behaviour.
,
Apr 15 2017
Thank you for providing more feedback. Adding requester "ppolisetty@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 9 2018
***Bulk edit*** Closing due to inactivity, please feel free to reopen if needed. |
||||
►
Sign in to add a comment |
||||
Comment 1 by miguel.s...@gmail.com
, Apr 10 2017