PHP Classes

PHP AJAX Upload file: Process image files uploaded via AJAX

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (4 months ago) RSS 2.0 feedStarStarStar 53%Total: 1,261 All time: 3,039 This week: 66Up
Version License PHP version Categories
ajax-upload 1.0.15GNU General Publi...5HTTP, PHP 5, Files and Folders, AJAX
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.

Picture of Ravi Kumar
  Performance   Level  
Name: Ravi Kumar <contact>
Classes: 6 packages by
Country: India India
Innovation award
Innovation award
Nominee: 2x

Recommendations

PHP code to identify uploaded file format
I need a code to identify the file format of uploaded file

Example

<?php
   
include_once 'upload.php';

   
$image = new Upload(
        array(
           
'file' => 'image'
       
)
    );

    echo
$image->process();


Details

Build Status Scrutinizer Code Quality Code Coverage Build Status Dependency Status 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.


Screenshots  
  • Screenshot.png
  Files folder image Files  
File Role Description
Files folder imageassets (3 directories)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file image.php Example Example script
Accessible without login Plain text file index.html Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Plain text file upload.php Class Class source

  Files folder image Files  /  assets  
File Role Description
Files folder imagecss (1 file)
Files folder imageimg (1 file)
Files folder imagejs (2 files)

  Files folder image Files  /  assets  /  css  
File Role Description
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  assets  /  img  
File Role Description
  Accessible without login Image file loader.gif Icon Icon image

  Files folder image Files  /  assets  /  js  
File Role Description
  Accessible without login Plain text file jquery-1.10.1.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.form.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 90%
Total:1,261
This week:0
All time:3,039
This week:66Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2285