Set file permissions for uploaded files.