upload code not working

hi!, i have added the upload code to addItem.php the admin file of

Page 1 of 1

2 Replies - 725 Views - Last Post: 13 August 2009 - 11:52 AM Rate Topic: -----

#1 vshall  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 12-August 09

upload code not working

Posted 13 August 2009 - 08:03 AM

hi!, i have added the upload code to addItem.php the admin file of my website which is online i just want to know the exact path where the file will b uploaded, so that i cud upload the file to the sever the code i've used is as follows:

$uplod= "http://www.fileName.com/../".$_FILES['ThumbImage']['name'];
$mov = move_uploaded_file($_FILES['ThumbImage']['tmp_name'], $uplod);
echo $mov;

but it's not working please help me out doing this.

This post has been edited by vshall: 13 August 2009 - 08:07 AM


Is This A Good Question/Topic? 0
  • +

Replies To: upload code not working

#2 Rezert  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 71
  • Joined: 17-August 08

Re: upload code not working

Posted 13 August 2009 - 10:36 AM

View Postvshall, on 13 Aug, 2009 - 07:03 AM, said:

hi!, i have added the upload code to addItem.php the admin file of my website which is online i just want to know the exact path where the file will b uploaded, so that i cud upload the file to the sever the code i've used is as follows:

$uplod= "http://www.fileName.com/../".$_FILES['ThumbImage']['name'];
$mov = move_uploaded_file($_FILES['ThumbImage']['tmp_name'], $uplod);
echo $mov;

but it's not working please help me out doing this.

I believe that you should change it like this:

$uplod = "/path/to/local/dir/".$_FILES['ThumbImage']['name'];

This post has been edited by Rezert: 13 August 2009 - 10:36 AM

Was This Post Helpful? 0
  • +
  • -

#3 izrafel  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 95
  • Joined: 24-July 09

Re: upload code not working

Posted 13 August 2009 - 11:52 AM

if Rezert post doesnt work check to see the permissions of the upload folder. (the most common error with uploading files ;) )
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1