Posted by Dave Mennenoh on 02/11/06 16:33
On my server I have defined several users and given them full rights to two
different folders. The rights for Anon on both folders is set to none - this
produces a username / password dialog upon trying to access the folder. The
two folder names are backdraft and images - both are off the root of my web
folder. I go to my backdraft folder and login, everything is fine - the
index page appears as it should. I can then jump into the images folder and
the server allows me... good.
Now, within the backdraft folder is a script folder containing fileup.php:
<?PHP
$folder = $_POST["folder"];
move_uploaded_file($_FILES['Filedata']['tmp_name'],
"$folder/".basename($_FILES['Filedata']['name']));
?>
That's all it is... What I want to do is upload a file and then move it into
a subfolder within the images folder. I keep running into 401 errors
though... which I can't understand as I'm logged in with full rights. I
figured if I can login and then jump to the images folder - my upload script
should allow moving to that folder.
Any help, or places too look much appreciated.
--
Dave -
www.blurredistinction.com
www.macromedia.com/support/forums/team_macromedia/
[Back to original message]
|