php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20568 Apache2/PHP 4.2.3 File Upload Corruption
Submitted: 2002-11-22 05:22 UTC Modified: 2002-12-04 18:17 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: dw-php dot net at botanicus dot net Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.2.3 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-11-22 05:22 UTC] dw-php dot net at botanicus dot net
Hi there,

I'm seeing odd corruption occurring to JPEG files (others unconfirmed) when uploading using POST. This is a localhost<->localhost connection, on a file getting uploaded from the same hard disk that the web server saves it to.

Upon downgrading to Apache 1.3.27, the problem went away. At the URL below you can find my configuration details, the code that handles the upload (I'm pretty sure it's not that), and some sample damaged files.

I cannot tell what kind of damage is occurring, the file size changes randomly, as does the visible damage to the image. I have tried with both w3m and Mozilla.

Sample files, the code, my configuration:

http://botanicus.net/dw/tmp/phpbug/


Thanks,

Dave.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-22 07:14 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-12-04 18:17 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Jun 23 18:01:28 2021 UTC