[ANNOUNCEMENT] HTTP_Upload-0.9.1 (stable) Released.
| From: | PEAR Announce | Date: | Wed, 11 Aug 2004 06:27:47 +0000 |
| Subject: | [ANNOUNCEMENT] HTTP_Upload-0.9.1 (stable) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14062@lists.php.net to get a copy of this message | ||
The new PEAR package HTTP_Upload-0.9.1 (stable) has been released at http://pear.php.net/.
Release notes
-------------
**The first release in (exactly!) two years!**
- **Changes between 0.9.0 and 0.9.1: fixed md5 hashes in package.xml!***
- (antonio) Added support for both PHP >= 4.2 and PHP 4.0-4.1
- (antonio) Fixed a lot of bugs
- (antonio, wenz) Fixed some localization strings
- (wenz) if only empty files are uploaded, an error message
is triggered
- (wenz) added setChmod() method to change CHMOD of uploaded files (patch by Markus Tacker)
- (cox, antonio, wenz) many minor fixes
- (cox) 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());
}
TODO:
- Move error class to a new file
- As PEAR in general requires now PHP 4.2, maybe drop BC compat in future
Package Info
-------------
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)
Related Links
-------------
Package home: http://pear.php.net/package/HTTP_Upload
Changelog: http://pear.php.net/package/HTTP_Upload/download/0.9.1
Download: http://pear.php.net/get/HTTP_Upload-0.9.1.tgz
Authors
-------------
Thomas V.V.Cox <cox@idecnet.com> (lead)
Christian Wenz <wenz@php.net> (lead)
Antônio Carlos Venâncio Júnior <antonio@php.net> (lead)