Skip to content

Commit 2141c52

Browse files
authored
Improve readability (#233)
1 parent d24f239 commit 2141c52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/forms.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,16 +863,16 @@ avatar:
863863

864864
Option | Description
865865
------------- | -------------
866-
`mode` | the expected file type, either file or image. Default: image.
866+
`mode` | the expected file type, either `file` or `image`. Default: `image`.
867867
`imageWidth` | if using image type, the image will be resized to this width, optional.
868868
`imageHeight` | if using image type, the image will be resized to this height, optional.
869869
`fileTypes` | file extensions that are accepted by the uploader, optional. Eg: `zip,txt`
870870
`mimeTypes` | MIME types that are accepted by the uploader, either as file extension or fully qualified name, optional. Eg: `bin,txt`
871871
`maxFilesize` | file size in Mb that are accepted by the uploader, optional. Default: from "upload_max_filesize" param value
872-
`useCaption` | allows a title and description to be set for the file. Default: true
872+
`useCaption` | allows a title and description to be set for the file. Default: `true`
873873
`prompt` | text to display for the upload button, applies to files only, optional.
874874
`thumbOptions` | options to pass to the thumbnail generating method for the file. See [Image Resizing](../services/image-resizing#available-parameters)
875-
`attachOnUpload` | Automatically attaches the uploaded file on upload if the parent record exists instead of using deferred binding to attach on save of the parent record. Defaults to false.
875+
`attachOnUpload` | Automatically attaches the uploaded file on upload if the parent record exists instead of using deferred binding to attach on save of the parent record. Defaults to `false`.
876876

877877
> **NOTE:** Unlike the [Media Finder FormWidget](#media-finder), the File Upload FormWidget uses [database file attachments](../database/attachments); so the field name must match a valid `attachOne` or `attachMany` relationship on the Model associated with the Form. **IMPORTANT:** Having a database column with the name used by this field type (i.e. a database column with the name of an existing `attachOne` or `attachMany` relationship) **will** cause this FormWidget to break. Use database columns with the Media Finder FormWidget and file attachment relationships with the File Upload FormWidget.
878878

0 commit comments

Comments
 (0)