PHP Classes

JSON File Upload: Validate and process files uploaded via Web forms

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 2,533 All time: 1,518 This week: 126Up
Version License Categories
json_file_upload 1.0.0GNU General Publi...Files and Folders
Description 

Author

This class can be used validate and process files uploaded via Web forms.

The class can perform several types of validation, like: check whether the user computer IP address is not in a list of banned addresses, check the file size against a given limit, check whether the file name has one of the accepted extensions and check whether file with the same name was previously uploaded.

After validating the file, the class can move it to a given upload folder and add an entry in a log file that records information about uploaded files.

The example demonstrates how to display an updated list of files stored in the upload folder.

Picture of Yamin Noor
Name: Yamin Noor <contact>
Classes: 1 package by
Country: United States United States
Age: 41
All time rank: 1239177 in United States United States
Week rank: 371 Up40 in United States United States Up

Details

************************** * JSON file upload class * * Author: Md.Yamin Noor * * Date: August 06, 2006 * ************************** 1. please do make sure that "upload/" & "upload/upload_logs" directory exists. 2. You can configure your directory by editing upload1.php file. Thanks Md.Yamin Noor

Screenshots  
  • screenshot
  Files folder image Files  
File Role Description
Files folder imagejson (2 files)
Files folder imageupload (1 file, 1 directory)
Plain text file json_upload.php Example json upload file
Plain text file upload.css Data css
Plain text file upload.html Data upload html
Plain text file upload.php Data upload main file
Plain text file upload1.php Example upload helper file
Plain text file upload_class.php Class main class file
Plain text file readme.txt Doc. readme

  Files folder image Files  /  json  
File Role Description
  Plain text file json.js Data json js
  Plain text file json.php Class json php

  Files folder image Files  /  upload  
File Role Description
Files folder imageupload_logs (1 file)
  Plain text file readme.txt Data default folder

  Files folder image Files  /  upload  /  upload_logs  
File Role Description
  Plain text file readme.txt Data upload log folder

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,533
This week:0
All time:1,518
This week:126Up