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

Link to comment
Share on other sites

$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...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.