Module: alfresco/services/FileUploadService

alfresco/services/FileUploadService

This service can be used to control the uploading of content as well as the updating the content of existing nodes on an Alfresco Repository.

NOTE: There is a bug with older browsers (IE8/IE9/IE10 only) that means that it is not possible to click on elements to the left or right of the upload panel.

Since:
  • 1.0.52
Author:
  • Martin Doyle
License:
Source:

Members

closeButtonLabel :string

The label to display on the minimise button for accessibility reasons
Type:
  • string
Since:
  • 1.0.58
Default Value:
  • "upload-panel.close.label"
Source:

i18nRequirements :object[]

An array of the i18n files to use with this widget.
Type:
  • object[]
Since:
  • 1.0.58
Source:

minimiseButtonLabel :string

The label to display on the minimise button for accessibility reasons
Type:
  • string
Since:
  • 1.0.58
Default Value:
  • "upload-panel.minimise.label"
Source:

restoreButtonLabel :string

The label to display on the minimise button for accessibility reasons
Type:
  • string
Since:
  • 1.0.58
Default Value:
  • "upload-panel.restore.label"
Source:

uploadsContainerTitleUpdateTopic :string

This is the topic on which to publish updates to the title container.
Type:
  • string
Source:

widgetsForUploadDisplay :object[]

The widget definition that displays the uploads' progress. This should be a single widget that implements the interface defined by _UploadsDisplayMixin.
Type:
  • object[]
Default Value:
  • [{name: "alfresco/upload/UploadMonitor"}]
Source:

Methods

registerSubscriptions()

Register this service's subscriptions.
Source:
Listens to Events:

resetTotalUploads(payload)

Extends the inherited function to publish a topic to indicate that the sticky panel containing this upload monitor can re-enable its close button.
Parameters:
Name Type Description
payload object A payload detailing the completed upload (not used)
Since:
  • 1.0.54
Source:
Fires:

showUploadsWidget() → {object}

Ensure the uploads display widget is available
Source:
Fires:
Returns:
A promise, that will resolve when the widget is ready to accept upload information.
Type
object