I have started working a a file upload for registered users. Registered users can view projects that have been alloted to them. So when they are browsing one of the projects, they can click on the file upload feature, browse to a file and upload it.
My script currently checks to see if a folder with the project name exists, if it doesn’t it creates one, and then uploads the file in either case.
The problem I have is that although this works reasonibly well...I can’t access that folder via FTP. Now I presume this is because the script I am using to upload is probably using a different user to the one that is accessing the folder as FTP...but how can I get around that?
Any help would be great.
Taff
Adrian Lawley: www.adrianlawley.com
-
☆ A M B ☆
- 24,524 Posts
Use the MODxManager’s file manager utility to access the files. Or make sure you only host on servers that use suexec to switch user to the script’s owner when running a script.
Does the script set folder permissions when it creates the folder?
Thank you all for your help...and so quick!
Quote from: Breezer at Aug 03, 2008, 12:23 PM
Does the script set folder permissions when it creates the folder?
Yes it does.
Adrian Lawley: www.adrianlawley.com