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 (3 months ago) RSS 2.0 feedStarStarStar 53%Total: 1,259 This week: 2All time: 3,046 This week: 44Up
Version License PHP version Categories
ajax-upload 1.0.14GNU 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 is available for providing paid consulting. Contact Ravi Kumar .
Classes: 6 packages by
Country: India India
Age: 40
All time rank: 1715101 in India India
Week rank: 53 Up6 in India India Up
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](https://travis-ci.org/ravikumar8/AjaxUpload.svg?branch=master)](https://travis-ci.org/ravikumar8/AjaxUpload) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ravikumar8/AjaxUpload/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ravikumar8/AjaxUpload/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/ravikumar8/AjaxUpload/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/ravikumar8/AjaxUpload/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/ravikumar8/AjaxUpload/badges/build.png?b=master)](https://scrutinizer-ci.com/g/ravikumar8/AjaxUpload/build-status/master) [![Dependency Status](https://www.versioneye.com/user/projects/55e76aae211c6b001f0006a7/badge.svg?style=flat)](https://www.versioneye.com/user/projects/55e76aae211c6b001f0006a7) 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 Data Auxiliary data
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,259
This week:2
All time:3,046
This week:44Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2271