Skip to content
Shamar

FilePicker

Form components gallery at `/demo/form-components`.
Browse folders and upload from the media library.
FilePicker.make('logoMediaId').image().makePublic()

Methods

MethodDescription
.image()Images only.
.accept() / .multiple()Type filter and multi-select.
.folder() / .makePublic()Media folder and public URL.
.label(text)Field label in the UI.
.required()Mark required on create/edit.
.helperText(text)Help text below the control.
.default(value)Default state when creating a record.
.hiddenOnForm() / .hiddenOnDetail()Hide on create/edit or show view.
.columnSpan(n) / .columnSpanFull()Grid span inside Section/Grid layouts.
.live()Re-render the form when this field changes.

Form components gallery at /demo/form-components.