[PHP-DEV] PHP 4.0 Bug #9418 Updated: Upload image file is broken From: nekto <email protected>
Date: 02/27/01

ID: 9418
User Update by: nekto <email protected>
Old-Status: Feedback
Status: Open
Bug Type: *General Issues
Description: Upload image file is broken

Ok, this fragment of my script:

<form enctype="multipart/form-data" method="post" action="<? $PHP_SELF ?>?action=add">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">

<..... skip .....>

    <tr>
      <td width="29%" height="30"><? print $lang["photo"]?></td>
      <td width="71%" height="30">
        <input type="file" name="photo" size="50" maxlength="255">
      </td>
    </tr>

<......skip.......>

 </table>
  <p>
    <input type="reset" name="Reset" value="<? print $lang["reset"]?>">
    <input type="submit" name="Submit" value="<? print $lang["save"]?>">
  </p>
</form>

<......skip.......>

copy ($photo, $photopath.$id);
unlink($photo);

Previous Comments:
---------------------------------------------------------------------------

[2001-02-27 08:45:40] sniper <email protected>
And the example script is where?

--Jani

---------------------------------------------------------------------------

[2001-02-25 22:28:23] nekto <email protected>
Hi!
1. yes, uploaded file exsit

2. filesize uploaded file equal filesize of original, but cmp say, what this files differ

cmp file1.gif file2.gif
file1.gif file2.gif differ: char 8, line 1

3. both file begin with string:
GIF89

4. I open files in browser using http address:
http://my.website.com/path/file.gif

---------------------------------------------------------------------------

[2001-02-25 18:28:55] lyric <email protected>
Reopening. jmoore : what's the hurry to close something just one day after the issue is reported?

nekto replied "What info yuo need?"
nekto: well
 does the uploaded file exist?
 does the file >0 filesize?
 what are the differences between the files - is the uploaded file prepended with a content-type header?
 what code are you using to reference the uploaded file?

---------------------------------------------------------------------------

[2001-02-24 13:23:34] jmoore <email protected>
Not enough information supplied closing.

---------------------------------------------------------------------------

[2001-02-23 05:04:14] nekto <email protected>
I have a problem with upload gif image (original differ from upload image). With yours recommendation, i install last cvs version of php4. But this not solved my problem. What i must doing for solving my problem?

---------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=9418

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>