jquery and iframe make an ajax upload effect example sharing

小云云
Release: 2017-12-30 14:03:58
Original
1205 people have browsed it

This article mainly brings you an article using jquery+iframe to create an ajax upload effect (example). The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor to take a look, I hope it can help everyone.

html page


##

   利用jquery+iframe做一个ajax上传效果       


Copy after login

upfile.php


echo move_uploaded_file($_FILES['pic']['tmp_name'],'./upload/' . $_FILES['pic']['name']) ? 'OK':'fail';
Copy after login

Have you learned it? It feels really good, so give it a try.

Related recommendations:

Example sharing Ajax upload file progress bar Codular

Example explanation H5 mobile development Ajax upload multiple Base64 format pictures To the server

How to implement the Ajax upload image and preview function

The above is the detailed content of jquery and iframe make an ajax upload effect example sharing. For more information, please follow other related articles on the PHP Chinese website!

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!