Fix files permissions

For existing files and files which will be uploaded in the future