android - Upload Picture Form Fails On Mobile Chrome -


I am creating a mobile webpad, in which the pictures are an important part of the user's phone.

I have received this form, in which a user can take a picture from his mobile phone in the DB of the app. I am using it for real upload.

  & lt; Form enctype = "multipart / form-data" action = "myapp / do_upload" method = "post" accept-charset = "utf-8" & gt; & Lt; Input type = "file" accept = "image / *" capture = "camera" name = "user file" & gt; & Lt; / Input & gt; & Lt; Input type = "submit" value = "submit" class = "btn btn-block" & gt; & Lt; / Button & gt; & Lt; / Form & gt;  Problem:   

The app works great on my desktop computer: You choose a file, upload it, and throws an error. It does not work.

However, when trying to do the same thing on my mobile phone (Android is running on Mobile Chrome), submit buttons refuse to work.

I tried negligible with attributes - no success.

Any idea what is actually working is stopping the form?

You have problems here

  & lt; Form enctype = "multipart / form-data" action = "myapp / do_upload" method = "post" accept-charset = "utf-8" & gt; & Lt; Input type = "file" accept = "image / *" capture = "camera" name = "user file" & gt; & Lt; / Input & gt; & Lt; Input type = "submit" value = "submit" class = "btn btn-block" & gt; & Lt; / Button & gt; // false & lt; Button type = "submit" value = "submit" class = "btn btn-block" & gt; & Lt; / Button & gt; // right & lt; / Form & gt;  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -