ClientFiletypeConfig
ClientFiletypeConfig =
object
Defined in: packages/storage/src/types.ts:267
Client-safe subset of a file type’s configuration, used for client-side validation.
Contains only the information needed by the useUpload hook to validate
files before uploading (accepted MIME types and max size). Does not expose
bucket names, key functions, or other server-only details.
Properties
Section titled “Properties”accept
Section titled “accept”accept: readonly
string[]
Defined in: packages/storage/src/types.ts:269
MIME types accepted for this file type.
maxSize
Section titled “maxSize”maxSize:
string
Defined in: packages/storage/src/types.ts:271
Human-readable maximum size string (e.g. "10mb").
maxSizeBytes
Section titled “maxSizeBytes”maxSizeBytes:
number
Defined in: packages/storage/src/types.ts:273
Maximum size in bytes (pre-parsed for efficient client validation).