Page 1 of 1

upload files, umask, mkdir - Error

Posted: Thu Dec 19, 2002 11:10 pm
by ssand
Hello,

I have made an upload script that makes a subdirectory and then copy the file to the subdirectory.

Problem I keep gettting "Error! Could not create subdirectory! (Permission denied)".

Although when I FTP to the site and examine the base upload directory it says 777.

I am tried using umask(000); before the mkdir but still receive the error.

Not sure what to do. Can the .htaccess file allow this and how??

The is on Windows NT. I also found that if I try to chmod a directory other than that of the default I always get an error. Or is this some system item the host provider has to change.

Thanks - Steve

Posted: Thu Dec 19, 2002 11:39 pm
by nathus
chmod is a *nix command, and doesn't work on windows based servers. in my experience with windows based servers (very limited) the server takes care of file permissions for you automatically.

Posted: Fri Dec 20, 2002 7:53 am
by serg4444
I use Windows commander for upload files by FTP - Files->Change Attributes - work for both Unix and Win NT servers

Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com