470,848 Members | 1,709 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

Need a little help with uploads and security

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
http://www.macromedia.com/support/fo...am_macromedia/
Feb 11 '06 #1
0 902

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Lee Marsh | last post: by
5 posts views Thread by el_roachmeister | last post: by
reply views Thread by Simon Devlin | last post: by
2 posts views Thread by Buddy Ackerman | last post: by
2 posts views Thread by Greg | last post: by
1 post views Thread by PehJota | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.