Login   Register  
PHP Classes
elePHPant
Icontem

Input Stream: Handle HTTP PUT data like POST files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-08-01 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 131 This week: 3All time: 7,497 This week: 611Up
Version License PHP version Categories  
input-stream 1.0GNU General Public Lice...5HTTP, PHP 5, Files and Folders
Description Author  

This class can handles HTTP PUT data like POST files.

It can read the current HTTP request input stream and process it to make it appear as it was made of files uploaded via the HTTP POST method.

The class returns arrays of data values that may be assigned to the $_FILES super-global to allow applications to process it like HTTP POST file upload requests.

It also returns an array with other submitted request values that can be assigned to $_PUT variable.

Innovation Award  
PHP Programming Innovation award nominee
August 2014
Nominee
Vote
Most PHP sites take file upload requests using the HTTP POST method. However, REST APIs also take file uploads using the HTTP PUT method.

This class simplifies the handling of HTTP PUT method file uploads by setting request variables to allow applications treat them as HTTP POST requests.

Manuel Lemos
Picture of Jason Gerfen
Name: Jason Gerfen <contact>
Classes: 2 packages by
Country: United States United States
Age: 39
All time rank: 1062139 in United States United States
Week rank: 203 Up20 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.streams.php Class Handles PUT methods with file input
Accessible without login Plain text file example.php Example Example usage

 Version Control Unique User Downloads Download Rankings  
 0%Total:131All time:7,497
 This week:3This week:611Up