php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37347 move_uploaded_file removes file
Submitted: 2006-05-07 08:33 UTC Modified: 2006-05-18 01:00 UTC
From: larryf at gmail dot com Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 5.1.4 OS: Windows 2003
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:
MUST BE VALID
Solve the problem:
41 - 36 = ?
Subscribe to this entry?

 
 [2006-05-07 08:33 UTC] larryf at gmail dot com
Description:
------------
Hi.  I am using a simple upload script to upload files.  It works on many file sizes, but on file sizes > 500 megs i can see the file in the tmp directory reach 400something megs and then it dissappears. 

Reproduce code:
---------------
		if (!is_dir("files/$id"))
		{
			mkdir("files/$id", 0777);
			chmod("files/$id", 0777);
		}
		$uploadfile =  "files/$id/" . $id . "." . $file[count($file) - 1];
		move_uploaded_file($_FILES["thefile"]["tmp_name"], $uploadfile);
		chmod($uploadfile, 0777);

for the php.ini config i have
memory_limit = 20M      
post_max_size = 5124M
upload_max_filesize = 4500M
apache 2.0

Expected result:
----------------
move file to files/id/id

Actual result:
--------------
it makes the directory, but the file is not moved there.  This works for files < 500 megs, why not more?  The only error reported in apache logs are for chmod at the end

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-10 10:28 UTC] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2006-05-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 00:01:28 2024 UTC