HTTP_Upload
[ class tree: HTTP_Upload ] [ index: HTTP_Upload ] [ all elements ]

File: Upload.php

Source Location: /HTTP_Upload-1.0.0b3/HTTP/Upload.php

Classes:

HTTP_Upload_Error
Error Class for HTTP_Upload
HTTP_Upload
This class provides an advanced file uploader system for file uploads made from html forms
HTTP_Upload_File
This class provides functions to work with the uploaded file

Page Details:

Includes:

require_once('PEAR.php') [line 39]
Pear File Uploader class. Easy and secure managment of files submitted via HTML Forms.

Leyend:

  • you can add error msgs in your language in the HTTP_Upload_Error class
TODO:
  • try to think a way of having all the Error system in other file and only include it when an error ocurrs
-- Notes for users HTTP_Upload >= 0.9.0 --

Error detection was enhanced, so you no longer need to check for PEAR::isError() in $upload->getFiles() or call $upload->isMissing(). Instead you'll get the error when do a check for $file->isError().

Example:

$upload = new HTTP_Upload('en'); $file = $upload->getFiles('i_dont_exist_in_form_definition'); if ($file->isError()) { die($file->getMessage()); }

--


HTTP_UPLOAD_DEFAULT_CHMOD [line 44]

HTTP_UPLOAD_DEFAULT_CHMOD = 0660
defines default chmod

[ Top ]



Documentation generated on Mon, 11 Mar 2019 16:04:24 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.