AnsweredAssumed Answered

FileUpload, customised header?

Question asked by sunquanbin on Apr 29, 2014
Latest reply on Apr 30, 2014 by sunquanbin
Hi,

Can I ask how to provide a customised header to the default share FileUpload.

By the default share FileUpload, I mean this one:


   var uploader = Alfresco.getFileUploadInstance();
        var uploadConfig = {
          siteId: {string}, // site to upload file(s) to
          containerId: {string}, // container to upload file(s) to (i.e. a doclib id)
          destination: {string}, // destination nodeRef to up}
          …..
         };
        uploader.show(uploadConfig);

        // SOME CODE TO CHANGE THE UPLOADER'S DEFAULT HEADER
        uploader.setHeader("Custom Header"); // no such method, so how I can achieve this?


The above code will pop-up a FileUpload window. The window has a default header "Upload File" or "Upload File(s)" depending on whether is single or multi upload. How can I change this header to my custom header, e.g. "Upload a picture"

Thanks,

Sun

Outcomes