Jquery + ajax + php image Upload

Source: Internet
Author: User
Tags jquery file upload
Jquery + ajax + php image Upload recently wrote the course design of "online shopping mall", using image upload.

I want to implement the following functions: (1) uploading multiple images, but of course there are limits. a maximum of five images can be uploaded; (2) previewing images; (3) ability to delete images; (4) the server can obtain uploaded image information.

I found a lot of such code from the Internet, but it was not very nice. This evening I finally found one, which is very good and clear.

Post original address: http://www.helloweba.com/view-blog-189.html

The image upload here uses jquery, which is compatible with mainstream browsers and easy to understand and modify. At the same time, this article solves one of my questions, that is, I read that many websites only have one input tag to upload images, but I don't know how to implement it. However, he can only upload one image here, but he can only upload multiple images after a small modification. let's take a look at the specific content. I will not talk about it much, but I have already explained it in detail.

Real-time upload is required for many projects. for example, you can select a local image to upload and display the image immediately. This document uses examples to illustrate how to use jQuery and PHP to implement the Ajax instant file upload function. you only need to select a local image to complete the upload and display the upload progress bar. after the upload is complete, displays image information.

HTML

This example is based on jQuery and excellent jquery. form plug-ins. Therefore, you must first load the jquery library and form plug-ins.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.