Bug #16449: Problem with upload of binary files
| From: | mirbuf at tin dot it | Date: | Fri, 05 Apr 2002 11:48:07 +0000 |
| Subject: | Bug #16449: Problem with upload of binary files | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-4125@lists.php.net to get a copy of this message | ||
From: mirbuf@tin.it
Operating system: Win2K Professional
PHP version: 4.1.2
PHP Bug Type: Apache related
Bug description: Problem with upload of binary files
Hello,
I'm having a problem with upload of binary files (tipically image/jpeg,
image/pjpeg).
The problem seems to happen with files bigger than 20k. Infact it doesn't
happen with tiny files like 5-10-15k.
I've done a class to handle file uploads, and it worked fine with previous
version of PHP (4.0.6). I tested also against Linux version (still 4.0.6)
and it works fine.
The class simply handle $HTTP_POST_FILES[$fieldname]['tmp_name'] and does
a copy($tempName,$filename).
Using $_FILES either doesn't work.
I tested against PHP 4.1.2, PHP 4.2.0RC1 and RC2 too, but the bug still
persists, on Windows 2000 platform.
I cannot verify this, but unless the copy function is broken, the
temporary file uploaded to Apache is already corrupt.
Any advice is kindly appreciated.
Thanks
Mirko Buffoni
--
Edit bug report at http://bugs.php.net/?id=16449&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16449&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16449&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16449&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16449&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16449&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16449&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16449&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16449&r=submittedtwice