Lodius2000 Posted January 15, 2009 Share Posted January 15, 2009 I've got this in my books at home, but I am at work, and i have the time... ive got 2 upload scripts that are for a jpg, and a .mov, both scripts are uploading the files with only user read and write permissions (octal of 600, or rw-------), making it pretty hard to access the files from a web browser. isnt there a function that gives uploaded files different permissions, I would like the permissions to be all (777, or RWXRWXRWX) Thanks a lot Quote Link to comment https://forums.phpfreaks.com/topic/140998-solved-file-permissions/ Share on other sites More sharing options...
trq Posted January 15, 2009 Share Posted January 15, 2009 chmod Quote Link to comment https://forums.phpfreaks.com/topic/140998-solved-file-permissions/#findComment-737951 Share on other sites More sharing options...
Lodius2000 Posted January 15, 2009 Author Share Posted January 15, 2009 thanks thorpe, just to get it straight, chmod has to be applied to an already written file right, I couldnt apply it to say $_FILES['uploadfile']['tmp_name'] could I? thanks Quote Link to comment https://forums.phpfreaks.com/topic/140998-solved-file-permissions/#findComment-737958 Share on other sites More sharing options...
trq Posted January 15, 2009 Share Posted January 15, 2009 $_FILES['uploadfile']['tmp_name'] simply stores the path to the temporary location of the file. Move it and then chmod it. Quote Link to comment https://forums.phpfreaks.com/topic/140998-solved-file-permissions/#findComment-737960 Share on other sites More sharing options...
Lodius2000 Posted January 15, 2009 Author Share Posted January 15, 2009 roger that solved Quote Link to comment https://forums.phpfreaks.com/topic/140998-solved-file-permissions/#findComment-737969 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.