cancel
Showing results for 
Search instead for 
Did you mean: 

Set Custom Type on FileUpload Issue

eramesh
Champ on-the-rise
Champ on-the-rise
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!


4 REPLIES 4

angelborroy
Community Manager Community Manager
Community Manager
Try this one https://github.com/softwareloop/uploader-plus
Hyland Developer Evangelist

vijaycharan_v
Champ in-the-making
Champ in-the-making
I added the following codes in share-config-custom.xml to display my custom types(4 types) in the "Create" dropdown content type.
It works fine.

<config evaluator="string-compare" condition="DocumentLibrary">


<create-content>
   <content id="building" label="Building" itemid="my:building"/>
   <content id="floor" label="Floor" itemid="my:floor"/>
   <content id="room" label="Room" itemid="my:room"/>
   <content id="whitepaper" label="Whitepaper" itemid="my:whitepaper"/>
</create-content>

</config>


I didnt follow the Jeff Potts guide to create the custom type
Correct me if I understood ur question wrongly.
I also attached the screenshot of the Share.

Alfresco Version
Community - 5.0.0

muralidharand
Star Contributor
Star Contributor
Hi Vijay,
I think Ramesh, wants to customise the File uploader dialog itself.

vijaycharan_v
Champ in-the-making
Champ in-the-making
aah. Yes I understood now. Thanks.