Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pb with upload file

Status
Not open for further replies.

monasa

IS-IT--Management
Jun 27, 2004
41
CA
Here is my code :

$source = $_FILES['imageUsager']['tmp_name'];
$dest = "images/";
move_uploaded_file( $source, $dest );

I had this error

Warning: move_uploaded_file(images/): failed to open stream: Is a directory in /HTML/d2/telecharger.php on line 65

Warning: move_uploaded_file(): Unable to move '/tmp/php2lQTF9' to 'images/' in /HTML/d2/telecharger.php on line 65


Please help
 
$dest must also include the resulting filename

like : $dest = "images/file.zip";

jamesp0tter,
mr.jamespotter@gmail.com

p.s.: sorry for my (sometimes) bad english :p
 
Thanks jamesp0tter,

But how about if I want the destination name be the same as the source name.

M.N
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top