How to upload pictures on mobile phone with html5+php?
Is there any similar plug-in?
You can use ajax to request the returned data and display it
The computer version has been implemented, using uploadify. I don’t know what plug-ins can be used for the mobile version? Hope you guys can answer it
How to upload pictures on mobile phone with html5+php?
Is there any similar plug-in?
You can use ajax to request the returned data and display it
The computer version has been implemented, using uploadify. I don’t know what plug-ins can be used for the mobile version? Hope you guys can answer it
Theoretically speaking, the computer side can be directly transplanted to the mobile side (is the traffic enough?).
I recommend you a plug-in
http://fex.baidu.com/webuploader/
It has been implemented on computers, why can’t it be implemented on mobile terminals? Mobile h5 support is only better than computer browsers.
Secondly, I didn’t check what plugin uploadify is. I can recommend you to click on the API. It is very easy to implement this function. It takes 30 to 50 lines of code on a platform that supports h5.
h5 has drag and drop events, which can be used with file selection for a good experience.
Just use xhr2 and formdata for uploading. Accepting files on the PHP side is the same as accepting form submissions.
In addition, displaying pictures does not require back-end return at all. Maybe you mean that PHP saves the file and returns the URL. H5 has a filereader API that can directly read the file and append it to the target location. No server-side processing is required.