Tuesday, April 11, 2017

Files uploaded on a server have 600 permission

I am using UniSharp/laravel-filemanager for handling user file upload. When files are uploaded they have 600 permission and cannot be accessed from the website. I can't understand if the mistake is on a server (cPanel) or in the code.

How can I fixed that?

I tried to manually chmod the folder and files and it works fine. However, I want new files to have 644 permission automatically.

Thanks!



via Petr

Advertisement