php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1978 file upload broken in beta2?
Submitted: 1999-08-05 18:58 UTC Modified: 1999-08-06 13:10 UTC
From: roberts_chris at yahoo dot com Assigned:
Status: Closed Package: Other
PHP Version: 4.0b1 OS: Solaris 7 x86 & SPARC
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: roberts_chris at yahoo dot com
New email:
PHP Version: OS:

 

 [1999-08-05 18:58 UTC] roberts_chris at yahoo dot com
The following code will work on the 3.0.x series as well as 4.0b1 but NOT 4.0b2-1 or 4.0b2-2.(haven't tried cvs).  All configured identically.  The only variable that works is $userfile_size.

Sol7 x86:
egcs-1.1.2 and the latest GNU tools

Sol7 sparc:
gcc-2.8.1 and a mixture of SUN/GNU tools

<HTML>
<HEAD><TITLE>Upload Test</TITLE></HEAD>
<BODY>
<?
if ( !$action ) {
  echo "<form enctype=multipart/form-data action=".$PHP_SELF." method=POST>\n";
  echo "<input type=hidden name=MAX_FILE_SIZE value=500000000>\n";
  echo "Send this file: ";
  echo "<input name=userfile type=file>\n";
  echo "<input type=hidden name=action value=show_me_the_file>\n";
  echo "<input type=submit value=Send File>\n";
  echo "</form>\n";
} else {
  echo "<h2>Size: $userfile_size</h2>\n";
  echo "<h2>Type: $userfile_type</h2>\n";
  echo "<h2>Name: $userfile_name</h2>\n";
  echo "<h2>File: $userfile</h2>\n";
}
?>
</BODY>
</HTML>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-06 13:10 UTC] zeev at cvs dot php dot net
Fixed in the latest CVS
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Dec 04 09:05:54 2022 UTC