View an usage examples for jquery and prototype with various options.
Download
- jquery.ajax_upload.0.9.js(7KB)
- jquery.ajax_upload.0.9.min.js (3KB)
- prototype.ajax_upload.0.9.js (7KB)
- prototype.ajax_upload.0.9.min.js(3KB)
View an usage examples for jquery and prototype with various options.
Download
2 comments:
I have been trying to use this with PHP but haven't been able to find a workin example.. can you post the upload.php file along with this thanks
Sidd
Source: http://valums.com/ajax-upload/
PHP example:
$uploaddir = '/var/www/uploads/';
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "success";
} else {
// WARNING! DO NOT USE "FALSE" STRING AS A RESPONSE!
// Otherwise onSubmit event will not be fired
echo "error";
}
Post a Comment