Dear All<br>I have some basic question in regard to file operations.<br><br><b>1. file_manage table</b> <br>Whenever we use file_save_upload api to upload a file, I can see one corresponding row is added to file_manage table.<br>
My question is, the row in file_manage table is temporary one or it will be there always. I am planning to read some information from file_manage table afterwards, if it is just a temporary entry, probably I will be in trouble.<br>
<br><b>2. File / directory permission</b><br>My hosting is a linux based hosting. My understanding is whenever a user uploads a file, finally the web server writes the file to system.<br>So the webserver application is the owner. <br>
<br>In my case, first I create a folder (with permission 0755), and then write the file (with permission 0664) to that folder.<br>Next time I want to delete the old file and write a new file it is not possible from same user who wrote the file last time or from any other user.<br>
Can somebody explain me why the permission issue comes here as always it is the webserver that writes the file, so virtually owner remains same.<br><br>If I keep the folder permission 0777 then second time file write is possible.<br>
<br>And, by keeping folder permission 0777, am I bringing up a security issue here....<br><br><br><br>Thanks and Regards<br>Austin<br><br><br>