file field type stores its value as a
file field is present, the default file upload control will be rendered and files will be uploaded using multipart form submit.
In readonly mode a link to the uploaded file will be rendered, from where it can be downloaded again.
document-definition: name: post content: - id: attachment type: file (1) - id: files type: file (2) attributes: file-repository: s3-files (3)
|1||Defines a single file attachment (
|2||Defines a multiple file attachment (
|3||Specifies that the files should be stored in the file repository with id
For all general information on
FileReference please refer to the corresponding reference documentation.
By default all files are stored in the default
FileRepository specified on the
You can specify a different target repository by providing a
document-definition: name: post content: - id: attachment attributes: file-repository: s3-files
The value of
file-repository must be the id under which the repository can be found in the
Even when specifying a target repository, files will still be uploaded to the default repository temporarily.
They will only be moved when the document is actually saved.
See the FileManagerModule documentation for more background information on