473,382 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 982

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lee Marsh | last post by:
First questions was already posted over on a.php, but no one responded, so I'm gonna post it again here: So I have a block of code that is used when a user uploades a picture file. Initially the...
5
by: el_roachmeister | last post by:
I want to ask my web hosts to allow file uploads with php since it is currently turned off. I was wondering does this pose a security risk to the server? What kinds of things should I check in my...
0
by: Simon Devlin | last post by:
Hi (and seasons greetings) After browsing through the google results on the subject, I'm still none the wiser. Here is the scenario. I have 2 files (though I'm happy for them to be...
2
by: Buddy Ackerman | last post by:
I seem to have a lot of complaints from users about file upload problems to my site (developed in ASP.NET). The issue is not related to setting the maxRequestLength or any security issues. Most of...
21
by: Marina | last post by:
I've spent 2 months working on this Access 2003 db, get something done and then the 'boss' wants something different that what was originally stated, or wants to add this or that. It's been nuts,...
2
by: Greg | last post by:
I need to create an aspx page that accepts an uploaded text file from a user and parses the file contents into various, normalized database tables/columns. The input file is an industry standard,...
2
by: Velhari | last post by:
Hi all, I developed the following codes to implement the concept of Multiple file Uploading Process. Actually my goal in this implementation is to uploads the files onto the server and i have...
1
by: PehJota | last post by:
I'm kinda new to PHP, and I'm trying to make a simple FTP upload script. It successfully connects to the server and logs in, but it can't upload. The transfer mode I use normally is ASCII (like I...
4
by: tshad | last post by:
How can I fix this error? I am on an XP and tried to right-click the uploads folder to find the security tab, but it isn't there. In IIS6, I have write access checked. How can I give ASPNET...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.