Fixed permissions for upload script