php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11882 uploaded files corrupt
Submitted: 2001-07-04 13:11 UTC Modified: 2001-07-04 14:28 UTC
From: tryk at sunbay dot kiev dot ua Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.6 OS: FreeBSD 4.1.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tryk at sunbay dot kiev dot ua
New email:
PHP Version: OS:

 

 [2001-07-04 13:11 UTC] tryk at sunbay dot kiev dot ua
So I have two pages:

3.phtml:
============================= cut here ================================
<form enctype="multipart/form-data" action="2.phtml" method=post>
<input type=hidden name=MAX_FILE_SIZE value="65000">
<input type=file name=att>
<input type=submit name=button value="Attach">
</form>
============================= cut here ================================

and 2.phtml:
============================= cut here ================================
<head>
<META HTTP-EQUIV="Refresh" 
<? 
if(!move_uploaded_file($att,"/somewhere/tmp/$att_name"))
        exit;
echo "CONTENT=\"2;URL=somewhere/tmp/$att_name\"" ?>>
</head>
============================= cut here ================================

And the file sent by 2.phtml is not the same like I upload in 3.phtml - if  the file is binary.
It is already not the same in /somewhere/tmp/

I use Russian Apache 1.3.14PL3.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-04 14:28 UTC] sniper@php.net
Check this bug report for solution to your problem:

http://www.php.net/bugs.php?id=11066&edit=1

--Jani


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 15 18:01:27 2019 UTC