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
Maintainers
- Tomas V.V.Cox (cox) — lead, inactive
- Christian Wenz (wenz) — lead, inactive
- Antônio Carlos Venâncio Júnior (antonio) — lead, inactive
Dependencies
Required
- PHP (>= 5.4.0)
- PEAR Installer (>= 1.10.0)
- PEAR
Releases
- 1.0.0b4 (beta, 2017-01-18)
Release notes
License: LGPL
QA release
BC break: classes split into separate files, PHP5 visibility added
Request #2487 : new methods addValidExtension() and hasValidExtension()
Request #19365: add option to allow for multiple extensions on same file - 1.0.0b3 (beta, 2015-12-08)
Release notes
License: LGPL
BC break: isError() has been renamed to hasError().
- Fix bug #19430: Unit tests are failing
- Fix bug #20929: Breaks with PEAR 1.10.0dev2 - 1.0.0b2 (beta, 2010-10-05)
Release notes
License: LGPL
QA release
Bug #17787 avoid ereg - 1.0.0b1 (beta, 2009-08-16)
- 0.9.1 (stable, 2004-08-11)
- 0.9.0 (stable, 2004-08-10)
- 0.8.1 (stable, 2002-08-10)
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #759 | Closed | Bug | 2004-02-15 | copy can not copy outside open_base_dir restriction | |
| #760 | Closed | Bug | 2004-02-15 | error msg should not have html chars | |
| #834 | Closed | Bug | 2004-02-22 | undefined index CONTENT_TYPE | |
| #835 | Closed | Bug | 2004-02-22 | old global arrays to new ones | |
| #836 | Closed | Bug | 2004-02-22 | does not handle upload_max_filesize like 2M style | |
| #837 | Closed | Bug | 2004-02-22 | double check not necessary | |
| #838 | Closed | Bug | 2004-02-22 | unecessary check | |
| #858 | No Feedback | Bug | 2004-02-26 | Upload Error Code with File size | |
| #1641 | Closed | Bug | 2004-06-15 | isValid()/isError() semantics | |
| #1650 | Closed | Bug | 2004-06-15 | incompatibility php4.2.2 php4.3.7 | |
| #1993 | Closed | Req | 2004-07-27 | Add method to set chmod of uploaded file w/ Patch | |
| #2099 | Closed | Req | 2004-08-09 | Internationalised Error Strings | |
| #2108 | Closed | Bug | 2004-08-10 | PEAR::Installer fails with bad MD5-sum | |
| #2251 | Closed | Bug | 2004-08-30 | Wrong error message if file is larger than MAX_FILE_SIZE | |
| #2252 | Bogus | Bug | 2004-08-30 | HTTP_Upload uses strings as error codes | |
| #2253 | No Feedback | Bug | 2004-08-30 | quotes | |
| #2291 | Closed | Bug | 2004-09-06 | typo in example and wrong return result of _evalValidExtensions() | |
| #2383 | Closed | Bug | 2004-09-23 | Notice: Undefined variable: error in C:\php5\PEAR\HTTP\Upload.php on line 509 | |
| #2412 | Bogus | Bug | 2004-09-29 | getFiles not return Pear Error Object | |
| #2487 | Closed | Req | 2004-10-09 | add a getValidExtensions() or appendValidExtension() | |
| #2872 | No Feedback | Bug | 2004-12-01 | Form with multiple uploads does not work | |
| #2927 | Wont fix | Req | 2004-12-08 | Monitoring of Uploads | |
| #2949 | Closed | Bug | 2004-12-12 | Missing PEAR dep | |
| #2950 | Closed | Req | 2004-12-12 | Addition of chars in nameToSafe | |
| #3080 | No Feedback | Bug | 2005-01-03 | wrong error messages | |
| #3386 | No Feedback | Bug | 2005-02-05 | ; in file name borks file extension detection | |
| #3509 | Bogus | Req | 2005-02-17 | Allowable extensions | |
| #3624 | Closed | Bug | 2005-02-27 | CRITICAL: non-ISO-8859-1 characters in package.xml must be entitied | |
| #4180 | No Feedback | Bug | 2005-04-19 | append in Upload::setName destroys the filename | |
| #4318 | Closed | Req | 2005-05-10 | file extension checking should not be case-sensitive | |
| #4332 | Closed | Bug | 2005-05-12 | problem when using 2 instance of HTTP_Upload & 2 files | |
| #4441 | Closed | Bug | 2005-05-26 | inaccurate error when uploading large file | |
| #4955 | Closed | Bug | 2005-07-31 | missing return statement | |
| #5432 | Bogus | Bug | 2005-09-16 | File is uploaded with a different name | |
| #5445 | Bogus | Bug | 2005-09-18 | The Packuage ignore setValidExtensions | |
| #5536 | Closed | Doc | 2005-09-27 | No explanation of properties | |
| #6094 | No Feedback | Bug | 2005-11-28 | Missing file name | |
| #6114 | Bogus | Bug | 2005-11-30 | nameToSafe doesn't remove parens | |
| #6220 | Bogus | Bug | 2005-12-11 | Error on determining uploaded files | |
| #6678 | Closed | Bug | 0.9.1 | 2006-02-02 | Missing return statement in HTTP_Upload::isMissing() |
| #6752 | Closed | Bug | 0.9.1 | 2006-02-11 | 'Only variable references should be returned by reference' PHP notice |
| #6884 | Closed | Req | CVS | 2006-02-22 | translations: Estonian and Russian |
| #6885 | Bogus | Req | CVS | 2006-02-22 | translations: Estonian and Russian |
| #6886 | Closed | Bug | CVS | 2006-02-22 | typo in code |
| #7029 | Closed | Bug | 0.9.1 | 2006-03-06 | PHP5 notice Only variable references should be returned by reference |
| #7322 | Closed | Bug | CVS | 2006-04-06 | small parse error |
| #7499 | Closed | Bug | CVS | 2006-04-27 | Error in HTTP_Upload::isMissing() on determining uploaded files |
| #7583 | Closed | Req | 0.9.1 | 2006-05-08 | New release needed |
| #7861 | Closed | Doc | 0.9.1 | 2006-06-10 | Filenames with spaces in them get their names changed when being moved |
| #8656 | Closed | Bug | CVS | 2006-09-07 | getFiles() generate error if one of uploaded files haven't been selected |
| #8658 | Closed | Bug | CVS | 2006-09-07 | Notice: Undefined property: _modeNameSeq in Upload.php on line 860 |
| #10769 | Closed | Bug | 0.9.1 | 2007-04-18 | Err: NO_USER_FILE instead of TOO_LARGE |
| #12312 | Bogus | Bug | 0.9.1 | 2007-10-23 | Static var is_built causes multiple instances to fail |
| #12432 | Wont fix | Bug | 0.9.1 | 2007-11-12 | Install error (International Characters) |
| #12572 | Closed | Doc | 0.9.1 | 2007-12-02 | license clarification needed |
| #13095 | Closed | Bug | 0.9.1 | 2008-02-09 | destDir does not exist - no error returned |
| #13360 | Wont fix | Req | 0.9.1 | 2008-03-10 | Why don't include Hash file? |
| #13749 | No Feedback | Req | 0.9.1 | 2008-04-23 | Only variable references should be returned by reference (E_STRICT) |
| #14502 | Bogus | Bug | CVS | 2008-08-14 | Reference notice |
| #14677 | Closed | Bug | 0.9.1 | 2008-09-21 | Security issue due to seeding random number generator |
| #14722 | Bogus | Doc | 0.9.1 | 2008-09-30 | File verification info request |
| #15003 | Closed | Bug | CVS | 2008-11-12 | Parse error in Upload.php |
| #15778 | Closed | Bug | 0.9.1 | 2009-01-26 | Installation Error |
| #17787 | Closed | Bug | SVN | 2010-08-22 | Patch: Avoiding ereg |
| #19320 | No Feedback | Bug | 1.0.0b2 | 2012-03-08 | Files with wrong timestamp |
| #19365 | Closed | Req | 1.0.0b2 | 2012-04-02 | check of multiple extensions is not supported |
| #19430 | Closed | Bug | 1.0.0b2 | 2012-05-22 | Unit tests are failing, please patch |
| #20929 | Closed | Bug | 1.0.0b2 | 2015-07-31 | Breaks with PEAR 1.10.0dev2: Cannot make static method PEAR::isError() non stat |
| #21185 | Assigned | Bug | 1.0.0b4 | 2017-02-22 | 1.0.0b4 breaks pearweb |