Topic: PHP file upload trouble "unable to move" warning (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=30987" title="Pages that link to Topic: PHP file upload trouble &amp;quot;unable to move&amp;quot; warning (Page 1 of 1)" rel="nofollow" >Topic: PHP file upload trouble &quot;unable to move&quot; warning <span class="small">(Page 1 of 1)</span>\

 
DL-44
Lunatic (VI) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 05-06-2009 16:40

Having a problem with a file upload.
I just moved from one server to another - upload worked great on first server, does not on new server.
Having a hard time finding an explanation in my google searches or in the php.net docs.

I have checked that the permissions on the /tmp/ folder and on the folder I am trying to move the file to are set properly.
The $_FILES['uploaded'] shows the file as I would expect.

But I get this from PHP:

quote:

Warning: move_uploaded_file(/usr/local/apache/htdocs/import/uploads/050409.csv) [function.move-uploaded-file]: failed to open stream: No such file or directory in /usr/local/apache/htdocs/import/includes/templates/admod_tra_upl.php on line 25

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phplverhf' to '/usr/local/apache/htdocs/import/uploads/050409.csv' in /usr/local/apache/htdocs/import/includes/templates/admod_tra_upl.php on line 25



$_FILES['uploaded']:

code:
Array
(
    [uploaded] => Array
        (
            [name] => 050409.csv
            [type] => application/vnd.ms-excel
            [tmp_name] => /tmp/phplverhf
            [error] => 0
            [size] => 192224
        )

)




Can anyone tell me what I need to look at to solve this? Not sure what other factors could be the cause...

thanks

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 05-06-2009 17:10

well, prime candidate would be the target file path - make sure the folder really exists where you think it exists

otherwise open_basedir could be set incorrectly, but I wouldn't assume that straight away.


so long,

->Tyberius Prime

DL-44
Lunatic (VI) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 05-06-2009 20:24

I looked at that path many times.
That damn extra 's' never caught my eye...
(or I should say the missing 's' on the server)

~sigh~

thanks TP.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu