Interface IUploadedFile
Represents a normalized uploaded-file resource returned by provider APIs. This interface exposes shared file metadata so higher-level SDK code can remain provider-agnostic.
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public interface IUploadedFile : IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
| Edit this page View SourceByteSize
Gets the file size in bytes. This value is useful for validating upload/download limits and storage usage.
Declaration
int ByteSize { get; }
Property Value
| Type | Description |
|---|---|
| int |
ExpiresAt
Gets the file expiration timestamp, if the provider defines one.
Returns null when the file has no expiration policy.
Declaration
UnixTime? ExpiresAt { get; }
Property Value
| Type | Description |
|---|---|
| UnixTime? |
MimeType
Gets the MIME type associated with the file. This can be used to select preview, parsing, or processing paths.
Declaration
MimeType MimeType { get; }
Property Value
| Type | Description |
|---|---|
| MimeType |
Uri
Gets a provider URL for this file, if available. Some providers expose signed URLs while others may return no URL.
Declaration
string Uri { get; }
Property Value
| Type | Description |
|---|---|
| string |