how come files that I uploaded using my fileupload php script. is automatically chmod by the server to 660 ? is there anyway to make server not doing that ?
do you think i should post that php script here ? (it's working fine in my others server)
you could always try a chmod to whatever permission you want after the file is uploaded to see what that does
btw, what are the permissions on the folder itself, the permissions could be propogating to the child dir's
i chmod the upload folder to 777 but the upload file become 660
if i change it manualy, i can view the file that i upload it in the browser.
The permissions you list are not the permissions you are going to get. The current umask will be ANDed with the value you list to set the actual permissions. Try this.
[code=php]$oldumask = umask(0); mkdir("test", 0777); umask($oldumask); [/code]