PHP Classes
elePHPant
Icontem

Input Stream: Handle HTTP PUT data like POST files

Recommend this page to a friend!
  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 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 194 All time: 7,869 This week: 880Up
Version License PHP version Categories
input-stream 1.0.0GNU General Publi...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
Number 4


Prize: One downloadable copy of Komodo IDE
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
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:194
This week:0
All time:7,869
This week:880Up