|All requests||>||What is the best PHP AJAX file upload...||>||Request new recommendation||>||Featured requests||>||No recommendations|
by Joshua Njovu - 6 years ago (2014-11-12)
PHP programmers may always want to upload their files using AJAX but there are not so many examples about this.
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.
you can upload many file, but this not Ajax.
1. by Dave Smith - 4 years ago (2016-03-02) Reply
AJAX required in request
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.
3. by Ilyos olimov - 4 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