Uploading Files - Setting Directory Permissions
Posted: Sun Dec 07, 2003 11:11 am
Hello everyone:
I've created a little application that lets a user upload a JPG file from their browser.
The application works fine and all, but it will only save the file if the destination directory permission is 777. I'm thinking that this is a potential security problem, other users on the server could discover the directory and make modifications with a script in their account, right?
Can someone give me some insight as to whether this is the correct way to set up file uploading? If not, any suggestions?
Thanks,
Peter.
I've created a little application that lets a user upload a JPG file from their browser.
The application works fine and all, but it will only save the file if the destination directory permission is 777. I'm thinking that this is a potential security problem, other users on the server could discover the directory and make modifications with a script in their account, right?
Can someone give me some insight as to whether this is the correct way to set up file uploading? If not, any suggestions?
Thanks,
Peter.