php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11605 Upload file fails!!!
Submitted: 2001-06-21 11:19 UTC Modified: 2001-06-21 18:09 UTC
From: dgalli at sda dot com dot ar Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.5 OS: win NT with Apache
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: dgalli at sda dot com dot ar
New email:
PHP Version: OS:

 

 [2001-06-21 11:19 UTC] dgalli at sda dot com dot ar
may be you can help me with these trouble. I have 2 files: a HTML with a form inside that upload a file and send to a PHP file that copy the file uploaded from tmp dir to "/upload" and then navigate back to the html file. when I try to upload several files, the html form fail and not send any file to tmp dir, but when I actualize (F5 or CTRL+F5)2 or 3 times the html files works again and send the file. 


**************************send.htm**************************
<HTML>
<HEAD>
	<Title>Upload</Title>
	<META HTTP-EQUIV="Expires" CONTENT="0">
</HEAD>
<BODY>
<form Action="send.php" Method="POST" ENCTYPE="MULTIPART/FORM-DATA" name="form1">
	<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="2000000">
	<input type="file" name="file" size="25" >
	<input type="submit" value="Agregar" name="B2">
</form>
</BODY>
</HTML>
************************************************************

**************************send.php**************************
<html>
<head>
	<META HTTP-EQUIV="Expires" CONTENT="0">
</head>	
<?PHP
	if ($file_size)
		copy($file, "upload/".$file_name);
?>
<script>
	javascript:window.history.back();
</script>
<html>
************************************************************
The files above are a simplification that files a need in my application.
Please help me....Sorry for my english...and Thank?s

Dante Daniel Galli

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-21 18:09 UTC] sniper@php.net
This works just fine for me when I replace the javascript
crap with header() call and don't use the the meta-tags.

--Jani


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 10:01:22 2019 UTC