PHP Classes

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

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 2,535 All time: 1,518 This week: 43Up
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

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 (1)  
  • screenshot
  Files folder image Files (12)  
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 (12)  /  json  
File Role Description
  Plain text file json.js Data json js
  Plain text file json.php Class json php

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

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,535
This week:0
All time:1,518
This week:43Up