Jump to content

uploading a file


jeff5656

Recommended Posts

I am trying to upload a file that a user chose from a form.  However, when I look in that directory, the file is not there.  Although I have error_reporting(E_ALL), I am not getting any errors - just the file is not there.

 

Is there anything wrong with my code:

 

move_uploaded_file($_FILES['imagefile']['tmp_name'], 	$_FILES['imagefile']['name']);

 

I assume that with the above code, the file should appear in the same directory.

 

or does it have to do with the permission of that directory.  It is set at 705.  I don't think godaddy (no jokes please) allows me to go to 777 (just to test it).

Link to comment
https://forums.phpfreaks.com/topic/268344-uploading-a-file/
Share on other sites

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.