Table of Contents

Class FilesConstants

Namespace
GenerativeAI
Assembly
GenerativeAI.dll

Defines a collection of constants representing supported MIME types for various file operations within the API.

public static class FilesConstants
Inheritance
FilesConstants
Inherited Members

Fields

MaxUploadFileSize

Represents the maximum allowed file size, in bytes, for file uploads within the system. Any file exceeding this size will result in an error or exception.

public const long MaxUploadFileSize = 2147483648

Field Value

long

Remarks

This constant is utilized across various methods to validate the file size before processing or uploading. It ensures compliance with API or system-imposed size limitations for handling file uploads.

See Also

SupportedMimeTypes

Gets the collection of all supported MIME types.

public static readonly HashSet<string> SupportedMimeTypes

Field Value

HashSet<string>
See Also