Class MultipartRequest

Description

A utility class to handle multipart/form-data requests, the kind of requests that support file uploads.

Wraps PHP's functions and global arrays to emulate Java's MultipartRequest class.

Located in /diy-framework/controller/MultipartRequest.class.php (line 12)


	
			
Method Summary
MultipartRequest __construct (Request $request, string $saveDir)
string getContentType (string $fileParam)
string getFilesystemName (string $fileParam)
string getOriginalFileName (string $fileParam)
Methods
Constructor __construct (line 22)

Constructs MultipartRequest from a simple Request.

  • access: public
MultipartRequest __construct (Request $request, string $saveDir)
  • Request $request
  • string $saveDir: Directory to save files to
getContentType (line 33)

Returns the content type of an uploaded file, or null if the file was not included in the upload.

  • return: Content type
  • access: public
string getContentType (string $fileParam)
  • string $fileParam: The name of the file input in HTML
getFilesystemName (line 45)

Returns the filesystem name of an uploaded file, or null if the file was not included in the upload.

  • return: Filesystem name
  • access: public
string getFilesystemName (string $fileParam)
  • string $fileParam: The name of the file input in HTML
getOriginalFileName (line 57)

Returns the original name of an uploaded file (as supplied by the client browser), or null if the file was not included in the upload.

  • return: Original name
  • access: public
string getOriginalFileName (string $fileParam)
  • string $fileParam: The name of the file input in HTML

Documentation generated on Tue, 25 Sep 2007 11:17:21 +0200 by phpDocumentor 1.3.2