MR Labs

File

File upload with drag-and-drop. Supports MIME type restrictions and max file size. Shows image preview for image files.

Inputtype: fileaccepts input

Live Preview

Max 5MB

Data Properties

NameTypeDefaultDescription
titlestring-Field label
placeholderstring-Upload zone text (default: 'Click to upload or drag and drop')
requiredbooleanfalseWhether the field is required

Config Options

NameTypeDefaultDescription
maxFileSizenumber10485760Max file size in bytes (default 10MB)
helpTextstring-Help text below the upload zone

Validation Rules

NameTypeDefaultDescription
allowedMimeTypesstring[]-Allowed MIME types (e.g. ['image/png', 'application/pdf']). Supports wildcards like 'image/*'
customMessagestring-Custom error message for invalid file type