|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3266 Cannot upload file in php4.03b
Submitted: 2000-01-21 08:07 UTC Modified: 2002-10-01 14:20 UTC
From: blues at netease dot com Assigned:
Status: Wont fix Package: Other
PHP Version: 3.0.14 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
16 + 15 = ?
Subscribe to this entry?

 [2000-01-21 08:07 UTC] blues at netease dot com
Hi,here I got a problem when I try to upload file in php4 script. The form is here(exactly) below:

	<form method=post name="Upload" enctype="multipart/form-data">
	<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="102400">
	<B>upload file:</B><br>
            local file:
		<INPUT NAME="userfile" TYPE="file" onBlur="serverFileName()"><br>
		remote file:<br> 
		<INPUT NAME="fn" type="text" select() onBlur="validateFileEntry(this.value, this)">
		<input type=hidden name="action" value="upload">
	<input type="submit" value="upload" >

Well,this form works well if I just upload file using the php script which contains the form.
That script also contains other functions to delete,rename,create and edit file and directory. It's something like this:


Click that url, script will delete a file named "filename.ext" using unlink() function, this is also done perfectly. 
But after that, the upload function doesn't work any more! I will see the variable $action 's value is still "deletefile" but not "upload" after pushed the upload button in that form.
I'm using seesion at the same time , but it never changes the $action 's value, even never read value from it.
Other forms without this line
work perfectly.
Could you tell me why?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-01 14:20 UTC]
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.

gpc order related maybe?
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 22:01:29 2024 UTC