ClientFiletypeConfig
ClientFiletypeConfig =
object
Defined in: packages/storage/src/types.ts:167
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:169
MIME types accepted for this file type.
maxSize
Section titled “maxSize”maxSize:
string
Defined in: packages/storage/src/types.ts:171
Human-readable maximum size string (e.g. "10mb").
maxSizeBytes
Section titled “maxSizeBytes”maxSizeBytes:
number
Defined in: packages/storage/src/types.ts:173
Maximum size in bytes (pre-parsed for efficient client validation).