+ 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
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 ^^
+ 13
Because FileReader only works on your client's side, not on SL's server.
+ 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.
+ 6
Reported to SL
+ 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.