AnsweredAssumed Answered

Set Custom Type on FileUpload Issue

Question asked by eramesh on Oct 27, 2015
Latest reply on Jan 29, 2016 by vijaycharan.v
Hi All!

I'm new to alfresco, trying to customize share fileupload to show custom type selection upon selecting the files to upload.

Did the following,

- Followed Jeff Potts "Working With Custom Content Types in Alfresco" to create custom type.
-  In share-config-custom.xml added
  <file-upload>
       <adobe-flash-enabled>true</adobe-flash-enabled>
  </file-upload>

- Updated flash-upload.get.js
  var contentTypes = [
   {
      id: "cm:content",
      value: "cm_content"
   },
   {
     id: "sc:doc",
     value: "sc_doc"
   },
   {
     id: "sc:whitepaper",
     value: "sc_whitepaper"
   }];

But for some reason "dnd-upload" is getting invoked instead of "flash-upload". I added the above custom type to "dnd-upload.get.js" I see the drop-down with the all 3 types but it doesn't wait to select the type, upload windows closes right after 100% upload.

Running version 5.0.1

Please help me in resolving this.

Thanks in advance for the help!


Outcomes