fixes 1015187 - Write files from uploads with 0644 permission
Merge pull request #2063 from peterbe/bug-1015187-add-file_upload_permissions-setting-to-config

fixes 1015187 - Write files from uploads with 0644 permission