Jump to content

move_uploaded_file() not moving my file into folder


robert_gsfame

Recommended Posts

I upload an image and put every information inside $_SESSION['tmp'] and $_SESSION['path']

then once user click on button then i use

 

move_uploaded_file($_SESSION['tmp'],$_SESSION['path'])

 

but file uploaded not appeared in my upload folder, and again i try to echo everything but all information still kept well in $_SESSION

 

is there something missing here?

 

thx

$newname = "../uploads/".$folder."/".$image_name;

move_uploaded_file($_FILES["filefieldname"]["tmp_name"], $newname);

 

without code we cant help you anywho --  when uploading a file, you cant use the session var you have to use the $_FILES variable for the first parameter at least...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.