Home > Backend Development > PHP Tutorial > How to implement html5+php image upload

How to implement html5+php image upload

WBOY
Release: 2016-08-04 09:21:37
Original
1606 people have browsed 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

How to implement html5+php image upload

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

Reply content:

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

How to implement html5+php image upload

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template