Jump to content

Upload folder is not right..


moviedrome

Recommended Posts

Hi,

 

I have this code

 

$uploaddir = dirname($_SERVER['SCRIPT_FILENAME']) ."/Images/";

 

and it uploads the image to /admin/images/ as the page i'm running it from is in the admin directory.

 

I've tried just using the http:// and it doesn't like it.

 

Could someone please tell me how i can make it upload the image to /images/ instead of within the admin folder.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/48190-upload-folder-is-not-right/
Share on other sites

URGH, Got this nasty error:

 

Warning: move_uploaded_file(/home/moviedro/public_html/hdtv/admin../Images/20070422174447_20050808203909_c5_1_b.JPG) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/moviedro/public_html/hdtv/admin/admin.rewards.add.php on line 58

 

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phphV2p2M' to '/home/moviedro/public_html/hdtv/admin../Images/20070422174447_20050808203909_c5_1_b.JPG' in /home/moviedro/public_html/hdtv/admin/admin.rewards.add.php on line 58

Column 'image' cannot be null

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.