Reputation: 1
I am a beginner Alfresco programmer. I have a problem with Alfresco.FileUpload (). On one page this method works, but on the other it gives the error alfresco.fileupload is not a constructor. Tried connecting to components / upload / file-upload.js page but it was unsuccessful.
Upvotes: 0
Views: 149
Reputation: 558
You'll want to use "Alfresco.getFileUploadInstance()" instead.
From file-upload.js:
/**
* FileUpload constructor.
*
* FileUpload is considered a singleton so constructor should be treated as private,
* please use Alfresco.getFileUploadInstance() instead.
*
* @param {string} htmlId The HTML id of the parent element
* @return {Alfresco.FileUpload} The new FileUpload instance
* @constructor
* @private
*/
Upvotes: 1