Quote:
Originally Posted by testpig
Hi Andrew.
I'm getting an error trying to upload files as a test user.
I have my local_root set to 0
My local_file_root_prefix is set to /images/linksfiles
I'm trying to set my upload directory to /uploads (being a sub directory of images/linksfiles) but I got an invalid directory error so I ended up leaving it blank thinking it would dump the images into the linksfiles folder.
No problems linking off the server and everything is working well...AWESOME piece of work. I have my permissions set so registered users can do their own uploads. When I come in as a test user and try to upload I get the error failed to move file
Any thoughts? All the folder permissions are set to 777 so its got me stuffed. I think I'm misunderstanding the config of the folders but not sure.
Thanks for your help....This has made my day 
|
I tried your settings on my PC and they work fine, so I suspect that it's something to do with file and directory permissions.
Maybe you can try this for me and let me know the results (by PM preferably)
Edit includes/local_link_include.php and look for the line
Code:
if (!move_uploaded_file($GPC['tmp_name'], $fullfile)) return(NN);
Take a copy of this file and temporaily edit those lines so that they read
Code:
if (!move_uploaded_file($GPC['tmp_name'], $fullfile)) {
echo 'move failed :'.$GPC['tmp_name'].':'.$fullfile.':<br />';
exit;
}
run a test and take note of the message that goes on the screen
Then replace the original file.