PHP Classes

What is the best PHP AJAX file upload class?: I want to upload files using AJAX

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP AJAX file upload...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP AJAX file upload class?

Edit

Picture of Joshua Njovu by Joshua Njovu - 9 years ago (2014-11-12)

I want to upload files using AJAX

This request is clear and relevant.
This request is not clear or is not relevant.

+9

PHP programmers may always want to upload their files using AJAX but there are not so many examples about this.

Ask clarification

3 Recommendations

File Upload With AJAX: Handle file uploads and returns JSON response

This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Bharat Parmar by Bharat Parmar package author package author Reputation 410 - 7 years ago (2016-04-11) Comment

User can upload the file with AJAX. Once the file will be selected by User, the Script will confirm user to upload file or not. If user allow to upload file, it will be uploaded to the server and return the File Name and Download Link of the uploaded file.


PHP Multi File Uploader: Validate and process one or more file uploads

This recommendation solves the problem.
This recommendation does not solve the problem.

-1

Picture of MOUSTAFA ELGAMMAL by MOUSTAFA ELGAMMAL package author package author Reputation 185 - 8 years ago (2016-02-29) Comment

you can upload many file, but this not Ajax.

  • 1 Comment
  • 1. Picture of Dave Smith by Dave Smith - 8 years ago (2016-03-02) Reply

    AJAX required in request


PHP Forms Class with HTML Generator and JavaScript Validation: HTML forms generation and validation.

This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Manuel Lemos by Manuel Lemos package author package author Reputation 23770 - 9 years ago (2014-11-15) Comment

You can either upload files via AJAX 2 in more recent browsers that support it, or you can use an hidden iframe and change the target attribute of the form to the iframe name.

This general purpose forms class uses the later, so it works well even in older browsers.

It uses the form_ajax_submit.php plugin to submit forms via iframe based AJAX requests. This plugin submits any form inputs you have in your forms, so it may include file or other types of inputs.

You can take a look at the test_ajax_submit.php example script to learn how it works.

The AJAX form submission demo shows that example script in action.

  • 1 Comment
  • 3. Picture of Ilyos olimov by Ilyos olimov - 7 years ago (2016-05-27) in reply to comment 2 by Manuel Lemos Reply

    Hi bro, i need uploader for my blog script. now i can upload multiple photos but it is uploading bottom of the article and it is hard to understand

    If i write text then uload photo and then write text upload photo and after inserting i could view it like this it will be perfect. Can you help me


Recommend package
: 
: