|Ratings|| ||Unique User Downloads|| ||Download Rankings|
| 59%||Total: 601 ||All time: 5,176 This week: 148|
This package can process uploaded images sent via AJAX requests.
It comes with jQuery plugin that can upload the one or more images using AJAX requests.
It can also display a preview of the selected images for upload, so the user can remove undesired images from the list of file to upload.
The PHP class can validate the uploaded images to check for valid image file name extensions, size limits, and limit number of uploaded files.
$uploadImages = new uploadImages();
/* Images are required */
if ($uploadImages->countImages() > 0)
/* Default validation:
$uploadImages->image_type = "jpg|jpeg|png|gif";
$uploadImages->min_size = "";
$uploadImages->min_size = 24;
$uploadImages->max_size = (1024*1024*3);
$uploadImages->max_files = 10;
/* Validate */
/* images array */
$images = $uploadImages->getImages();
foreach ($images as $image)
/* save the image */
if ($uploadImages->saveImage($image["tmp_name"], "images/", $image["name"]))
print ("<p class='text-success'>· <strong>" . $image["name"] . "</strong> saved in images folder</p>");
print("<p class='text-danger'>· " . $image["name"] . " error to saved</p>");
/* GET EXTRA PARAMETERS */
print("<h3 class='text-info'>EXTRA PARAMETERS</h3>");
else /* Show errors array */
print("<p class='text-danger'>images required</p>");
||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.