Embedded Asset Upload
When adding a Field to a DataElement that links to the Asset element, the input forms allow you to select an existing Asset to link to. This implies that you first have to upload the asset you wish to link to, before you can actually link it to the element. In many cases this can be the desirable approach, but in some cases, you would want to simply upload an asset and link it automatically while creating the element.
The option assets.embeddedUpload
allows you to replace the link selector in the create dialog of an element, with an file select button.
This feature will automatically upload the file and create an Asset instance, that will be linked to the element you are creating.
Field
Replaces the DataRef selector for a Field linking to Asset with an file selection button. The value of the option should be the type of Asset that should be created when the file is uploaded.
<options>
<assets.embeddedUpload>FILE</assets.embeddedUpload>
</options>
<options>
<assets.embeddedUpload>INTERNAL</assets.embeddedUpload>
</options>