If `File.apply_restrictions_to_admin` is configured as `false` (defaults to `true`), then admins can upload any file type. With this change, they couldn't see the result of their upload. So I think the `$allowedExtensions` check needs to be skipped if `File.apply_restrictions_to_admin=false`.