CodeIgniter Forums
File permission change automatically - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: File permission change automatically (/showthread.php?tid=72460)



File permission change automatically - alamkhan - 12-22-2018

After uploading successful, using defaulUpload library the file is saved in 'only read mode' in server directory, using chmod native function i change the file permission manually.
The question is why the file is not saved with it's default permission mode?
Operating system: Ubuntu

Thank you


RE: File permission change automatically - demyr - 12-31-2018

Have you talked to your hosting provider about the issue? They can help you for chmod settings. I believe, it's not about Codeigniter.


RE: File permission change automatically - php_rocs - 12-31-2018

@alamkhan,

I agree with @demyr. Check with your hosting provider and see what their default settings are. Also keep in mind that you could automate setting the files permissions every time a file is uploaded (just a thought). Just make sure that the file is from a trusted source.