Class UploadFileConfig
Used to override the default configuration.
public record UploadFileConfig : IEquatable<UploadFileConfig>
- Inheritance
-
UploadFileConfig
- Implements
- Inherited Members
Properties
DisplayName
Optional display name of the file.
[JsonPropertyName("displayName")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? DisplayName { get; set; }
Property Value
HttpOptions
Used to override HTTP request options.
[JsonPropertyName("httpOptions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public HttpOptions? HttpOptions { get; set; }
Property Value
MimeType
mime_type: The MIME type of the file. If not provided, it will be inferred from the file extension.
[JsonPropertyName("mimeType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? MimeType { get; set; }
Property Value
Name
The name of the file in the destination (e.g., 'files/sample-image'. If not provided one will be generated.
[JsonPropertyName("name")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Name { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a UploadFileConfig object.
public static UploadFileConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- UploadFileConfig
The deserialized UploadFileConfig object, or null if deserialization fails.