|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32456 move_uploaded_file - file gone after move
Submitted: 2005-03-25 18:35 UTC Modified: 2005-04-02 01:00 UTC
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: cyz at whiskey-soda dot de Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 4.3.10 OS: debian sarge 2.6.8-1-686
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.
Block user comment
Status: Assign to:
Bug Type:
From: cyz at whiskey-soda dot de
New email:
PHP Version: OS:


 [2005-03-25 18:35 UTC] cyz at whiskey-soda dot de
i moved from my old server to a new faster one ...

everything works fine except uploading files

move_uploaded_file produces NO errors or NO warnings ... but the file does not reach its destination

i can read /fpassthru it from the $_FILES['tmp_name'] and i can copy it ... just move_uploaded_file does not work

safe mode is on on the old server - off on the new server

Reproduce code:
$upload_dir = "tmp/";
$filename =  $_FILES['filetoupload']['name'];

if (copy($_FILES['filetoupload']['tmp_name'],$upload_dir.$filename)) {
// this works


if (move_uploaded_file($_FILES['filetoupload']['tmp_name'],$upload_dir.$filename)) {
// this does not works but shows no errors
echo "done"; # this is shown

Expected result:
a file in my tmp/ directory ... but it doesnt reach it

Actual result:
the tmp/ directory stays empty when i use move_uploaded_file (copy works though)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-02 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-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 18 18:01:23 2021 UTC