+ 8

Why input type 'file' doesn't work on playground?

I have created a code sample to demonstrate FileReader API on playground. But it seems that when i press "Chose File" button, nothing happens. Code works outside playground. Any explanation? Here is the code on playground https://code.sololearn.com/Wu67U0gp4dyW/?ref=app

9th May 2017, 8:33 PM
Apel Mahmod
Apel Mahmod - avatar
6 Answers
+ 7
This seems to be a known issue of android WebView: https://stackoverflow.com/questions/5907369/file-upload-in-webview Repport it to SL, as the workaround seems possible on an app' update only ^^
10th May 2017, 4:11 AM
visph
visph - avatar
+ 13
Because FileReader only works on your client's side, not on SL's server.
9th May 2017, 8:37 PM
Karl T.
Karl T. - avatar
+ 7
@Helioform it is okay if it doesn't support FileReader but shouldn't it prompt me to select a file at least when a click "Choose File" button? I am not sure how SL playground works.
9th May 2017, 8:40 PM
Apel Mahmod
Apel Mahmod - avatar
+ 6
Reported to SL
10th May 2017, 4:52 AM
Apel Mahmod
Apel Mahmod - avatar
+ 4
Your file input should work on code playground in pc browser. What I can think of it the reason why it cannot work in phone app is due to its webview issue. You can report it to SL to request a solution.
10th May 2017, 12:26 AM
CalviŐ˛
CalviŐ˛ - avatar