PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_Upload

Easy and secure managment of files submitted via HTML Forms

This package is unmaintained.

Download latest release 1.0.0b4 (archived versions might be outdated)

License: LGPL

Description

This class provides an advanced file uploader system for file uploads made
from html forms. Features:
* Can handle from one file to multiple files.
* Safe file copying from tmp dir.
* Easy detecting mechanism of valid upload, missing upload or error.
* Gives extensive information about the uploaded file.
* Rename uploaded files in different ways: as it is, safe or unique
* Validate allowed file extensions
* Multiple languages error messages support (es, en, de, fr, it, nl, pt_BR)

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#759ClosedBug2004-02-15copy can not copy outside open_base_dir restriction
#760ClosedBug2004-02-15error msg should not have html chars
#834ClosedBug2004-02-22undefined index CONTENT_TYPE
#835ClosedBug2004-02-22old global arrays to new ones
#836ClosedBug2004-02-22does not handle upload_max_filesize like 2M style
#837ClosedBug2004-02-22double check not necessary
#838ClosedBug2004-02-22unecessary check
#858No FeedbackBug2004-02-26Upload Error Code with File size
#1641ClosedBug2004-06-15isValid()/isError() semantics
#1650ClosedBug2004-06-15incompatibility php4.2.2 php4.3.7
#1993ClosedReq2004-07-27Add method to set chmod of uploaded file w/ Patch
#2099ClosedReq2004-08-09Internationalised Error Strings
#2108ClosedBug2004-08-10PEAR::Installer fails with bad MD5-sum
#2251ClosedBug2004-08-30Wrong error message if file is larger than MAX_FILE_SIZE
#2252BogusBug2004-08-30HTTP_Upload uses strings as error codes
#2253No FeedbackBug2004-08-30quotes
#2291ClosedBug2004-09-06typo in example and wrong return result of _evalValidExtensions()
#2383ClosedBug2004-09-23Notice: Undefined variable: error in C:\php5\PEAR\HTTP\Upload.php on line 509
#2412BogusBug2004-09-29getFiles not return Pear Error Object
#2487ClosedReq2004-10-09add a getValidExtensions() or appendValidExtension()
#2872No FeedbackBug2004-12-01Form with multiple uploads does not work
#2927Wont fixReq2004-12-08Monitoring of Uploads
#2949ClosedBug2004-12-12Missing PEAR dep
#2950ClosedReq2004-12-12Addition of chars in nameToSafe
#3080No FeedbackBug2005-01-03wrong error messages
#3386No FeedbackBug2005-02-05; in file name borks file extension detection
#3509BogusReq2005-02-17Allowable extensions
#3624ClosedBug2005-02-27CRITICAL: non-ISO-8859-1 characters in package.xml must be entitied
#4180No FeedbackBug2005-04-19append in Upload::setName destroys the filename
#4318ClosedReq2005-05-10file extension checking should not be case-sensitive
#4332ClosedBug2005-05-12problem when using 2 instance of HTTP_Upload & 2 files
#4441ClosedBug2005-05-26inaccurate error when uploading large file
#4955ClosedBug2005-07-31missing return statement
#5432BogusBug2005-09-16File is uploaded with a different name
#5445BogusBug2005-09-18The Packuage ignore setValidExtensions
#5536ClosedDoc2005-09-27No explanation of properties
#6094No FeedbackBug2005-11-28Missing file name
#6114BogusBug2005-11-30nameToSafe doesn't remove parens
#6220BogusBug2005-12-11Error on determining uploaded files
#6678ClosedBug0.9.12006-02-02Missing return statement in HTTP_Upload::isMissing()
#6752ClosedBug0.9.12006-02-11'Only variable references should be returned by reference' PHP notice
#6884ClosedReqCVS2006-02-22translations: Estonian and Russian
#6885BogusReqCVS2006-02-22translations: Estonian and Russian
#6886ClosedBugCVS2006-02-22typo in code
#7029ClosedBug0.9.12006-03-06PHP5 notice Only variable references should be returned by reference
#7322ClosedBugCVS2006-04-06small parse error
#7499ClosedBugCVS2006-04-27Error in HTTP_Upload::isMissing() on determining uploaded files
#7583ClosedReq0.9.12006-05-08New release needed
#7861ClosedDoc0.9.12006-06-10Filenames with spaces in them get their names changed when being moved
#8656ClosedBugCVS2006-09-07getFiles() generate error if one of uploaded files haven't been selected
#8658ClosedBugCVS2006-09-07Notice: Undefined property: _modeNameSeq in Upload.php on line 860
#10769ClosedBug0.9.12007-04-18Err: NO_USER_FILE instead of TOO_LARGE
#12312BogusBug0.9.12007-10-23Static var is_built causes multiple instances to fail
#12432Wont fixBug0.9.12007-11-12Install error (International Characters)
#12572ClosedDoc0.9.12007-12-02license clarification needed
#13095ClosedBug0.9.12008-02-09destDir does not exist - no error returned
#13360Wont fixReq0.9.12008-03-10Why don't include Hash file?
#13749No FeedbackReq0.9.12008-04-23Only variable references should be returned by reference (E_STRICT)
#14502BogusBugCVS2008-08-14Reference notice
#14677ClosedBug0.9.12008-09-21Security issue due to seeding random number generator
#14722BogusDoc0.9.12008-09-30File verification info request
#15003ClosedBugCVS2008-11-12Parse error in Upload.php
#15778ClosedBug0.9.12009-01-26Installation Error
#17787ClosedBugSVN2010-08-22Patch: Avoiding ereg
#19320No FeedbackBug1.0.0b22012-03-08Files with wrong timestamp
#19365ClosedReq1.0.0b22012-04-02check of multiple extensions is not supported
#19430ClosedBug1.0.0b22012-05-22Unit tests are failing, please patch
#20929ClosedBug1.0.0b22015-07-31Breaks with PEAR 1.10.0dev2: Cannot make static method PEAR::isError() non stat
#21185AssignedBug1.0.0b42017-02-221.0.0b4 breaks pearweb