cancel
Showing results for 
Search instead for 
Did you mean: 

how to use dnd upload in alfresco enterprise edition 4.1.4

rockyrakhi
Champ in-the-making
Champ in-the-making
Hi,

      I am using Alfresco Enterprise edition 4.1.4. in which we do have only flash upload and html upload(single file upload) only. I want to use drag and drop upload. Can some one help me out in this issue. Actually in 4.2.c I had used drag and drop upload.

      So, Finally when I click on upload button, I want to get call dnd upload file instead of flash or html.
8 REPLIES 8

ddraper
World-Class Innovator
World-Class Innovator
If you want this on 4.1.4 then you're going to need to create a custom solution. Although, the DND uploader is available in 4.1.4 it is not also used as the HTML5 uploader (as it is in 4.2c). This means that if you disable the flash uploader (via share-documentlibrary-config.xml) then you'll get the basic single upload HTML uploader.

If you want this on 4.2c then the DND uploader and the HTML5 uploader are actually the same widget (but just launched differently with certain parts of the DOM hidden/revealed). It should be possible to adapt the 4.2c code into 4.1.4 but obviously this wouldn't be officially supported.

Regards,
Dave

rockyrakhi
Champ in-the-making
Champ in-the-making
Dave,
 
       Your reply is very appreciable. So, from your answer I confirmed that We can get DND upload in 4.1.4 when we click on upload button. So, I need little bit more clarity how we can get this in 4.1.4. I mean how to reveal dnd uploader. Actually I need dnd uploader when I click on upload button, not by just drag and drop files in to repository.

thanks in advance.

ddraper
World-Class Innovator
World-Class Innovator
You should compare the files from 4.2 and 4.1.x if you want to retrofit you own solution…

DocLib template instance config: /Slingshot/config/alfresco/site-data/template-instances/documentlibrary.xml
DocLib template freemarker file: /Slingshot/config/alfresco/templates/org/alfresco/documentlibrary.ftl
File uploader manager: /Slingshot/source/web/components/upload/file-upload.js
DND upload WebScript Slingshot/config/alfresco/site-webscripts/org/alfresco/components/upload/dnd-upload.get.*
DND upload widget: /Slingshot/source/web/components/upload/dnd-upload.js

rockyrakhi
Champ in-the-making
Champ in-the-making
Dave,

        I am trying to compare the files you specified, If you know, can you tell me in which file we can find that, if flash disables appropriate other upload(either html or dnd) is working right. how it is happening.

thanks.

ddraper
World-Class Innovator
World-Class Innovator
Flash upload is disabled by the <adobe-flash-enabled> setting in share-documentlibrary-config.xml. The value is used by the "file-upload.js" file to determine which uploader to use.

rockyrakhi
Champ in-the-making
Champ in-the-making
Dave,

      If possible please let me know what are the changes that I need to do get dnd upload when I click on upload button. and at the same time I need to disable html also right?

thanks

ddraper
World-Class Innovator
World-Class Innovator
I'm afraid that's not possible, no. I've provided plenty of information to get you going, the forums are providing assistance, not for doing other people's job for them.

rockyrakhi
Champ in-the-making
Champ in-the-making
Dave,

       You have given me useful information. and I am not asking you to do my job. Actually I found, how to disable flash,html uploaders. I found major differences and also able to call dnd-upload.js file and I did not understand one thing how to call that dnd-upload.html.ftl file when we click on upload button. How it is getting call in community eidition.

thanks