PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All requests RSS feed  >  What is the best PHP AJAX file upload class?  >  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 - 1 year 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.

+1

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

Ask clarification

1 Recommendation

Forms generation and validation: HTML forms generation and validation.

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

+1

Picture of Manuel Lemos by Manuel Lemos package author package author Reputation 11100 - 1 year 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.


Recommend package
: 
: