Javadoc |
---|
rangeHigherVersion | 2.2 |
---|
className0 | info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition |
---|
renderType | asynchronous |
---|
|
renders a field for uploading files into a Magnolia workspace. This field is used by the
Assets app for uploading assets into the dam workspace. It extends the
basic upload field field and adds the following enhancements to the completed view:
- The uploaded file is mapped to a media type based on its MIME type.
- The default field labels are overridden with Media type specific labels such as Upload new image.
- Actions for editing images in the media editor.
- Actions for previewing images.
- Thumbnail preview.
Classclass: info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition
...
Here's the completed view for an uploaded video.
DAM upload field properties
...
Localtab Group |
---|
Localtab |
---|
| Code Block |
---|
| form:
tabs:
- name: tabUpload
label: Upload
fields:
- name: upload
class: info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition
label: Upload asset
binaryNodeName: jcr:content
editFileName: true |
|
Localtab |
---|
| Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
| Node name | Value |
---|
|
| |
| |
| |
| | |
| | jcr:content | | info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition | | Upload asset | | true |
|
|
|
...
It's possible to configure the
Javadoc |
---|
rangeHigherVersion | 2.2 |
---|
className0 | info.magnolia.dam.app.ui.field.definition.DamUploadFieldDefinition |
---|
|
in in dialogs or other apps, but keep in mind the file will placed into the workspace for which the field has been configured. For example, if you use the field in a dialog for a component template, then that file, when uploaded using the field, would be stored in the website workspace not the dam workspace. This is the same behavior as all other fields. It's best practice, whenever possible, to keep your assets in the DAM and link to them using a
link field.