Module: alfresco/forms/controls/FileSelect

alfresco/forms/controls/FileSelect

Author:
  • Dave Draper
License:
Source:

Members

filterMimeType :string

The accept attribute to specify the types of files to accept (that can be submitted through a file upload). By default accept all file types. Possible values: ".gif, .jpg, .png, .doc" or other file extensions, "application/vnd.openxmlformats-officedocument.wordprocessingml.document, .application/msword" and other MIME-types, "audio/*, video/*, image/*".
Type:
  • string
Since:
  • 1.0.79
Source:

recreateControlOnSelect :boolean

Configuring this attribute to be true will result in the wrapped FileInput widget being recreated each time that file or files are selected. This option was added to support a specific use case, see https://issues.alfresco.com/jira/browse/AKU-834 for details.
Type:
  • boolean
Since:
  • 1.0.57
Default Value:
  • false
Source:

Methods

createFormControl()

Source:

getWidgetConfig()

Source:

onFilesSelected(evt)

Parameters:
Name Type Description
evt object The onchange event
Source:

recreateControl()

Recreate the control (part of fix for AKU-834)
Since:
  • 1.0.57
Source:

setupChangeEvents()

Overrides the default change events to use blur events on the text box. This is done so that we can validate on every single keypress. However, we need to keep track of old values as this information is not readily available from the text box itself.
Source: