aceUIFileUploader

The aceUIFileUploader widget allows for uploads of files to a content with the aceFiles aspect. You can drag and drop a single resources or "Browse" and select a single files.

The aceUIFileUploader is meant to be used to upload a file to a content type that supports file storing, not to attach resources to a content.

aceUIFileUploader with uploaded file: Minion

Configuration

Attribute Description Default
"blacklist" boolean

Toggles if mimeTypes is a blacklist.
false
"mimeTypes" Array

A list describing the mime types to handle. If this attribute is undefined any mime type is accepted.

Localization

This widget has localization support.

Expected domain objects

This widget expects multiple domain objects:

  "filePath": A field describing a location of a resource.
  "files": The aceFiles aspect.

Example template json

{
  "label": "Video",
  "widget": "aceUIFileUploader",
  "config": {
    "mimeTypes": ["video/*"],
    "blacklist": false
  },

  "domainObjects": {
    "filePath": "myAspect/videoPath",
    "files": "aceFiles"
  }
}