Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-01-09 (4 months ago) | | 53% | | Total: 1,261 | | All time: 3,039 This week: 66 |
|
Description | | Author |
This class can process image files uploaded via AJAX.
It takes a form submission request to upload a file via AJAX and returns messages to the browser to communicate the result of the file processing.
The class returns error messages in case no file was uploaded, or the file name extension is not in the list of accepted extensions, or the file size was exceeded the allowed limit, or the file already exists in the destination directory.
If the file upload is valid, the class moves it to the destination directory and returns a HTML message to display the uploaded image file in the browser. | |
|
|
Innovation award
Nominee: 2x |
|
Recommendations
Example
<?php
include_once 'upload.php';
$image = new Upload(
array(
'file' => 'image'
)
);
echo $image->process();
|
Details
AjaxUpload
This class can process image files uploaded via AJAX.
It takes a form submission request to upload a file via AJAX and returns messages to the browser to communicate the result of the file processing.
The class returns error messages in case no file was uploaded, or the file name extension is not in the list of accepted extensions, or the file size was exceeded the allowed limit, or the file already exists in the destination directory.
If the file upload is valid, the class moves it to the destination directory and returns a HTML message to display the uploaded image file in the browser.
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.