DragandDrop control in K2 Five

  • 16 June 2020
  • 4 replies
  • 92 views

Hi,

 

Is there a way to create a Drag and Drop file attachment control in K2 5.3? I followed the topic -- https://community.k2.com/t5/K2-blackpearl/Drag-and-Drop-Upload-Control/ba-p/63942?nobounce ,  but this does not work .  I get the error in Runtime browser --  MIME type ('text/html') is not executable, and strict MIME type checking is enabled. 
Has someone able to make it work in K2 5 version or is there another way to get a drag and drop control? 


4 replies

Userlevel 4
Badge +13

Hello  @chaa ,


 


Just to let you know there's an existing feature request on a drag and drop functionality for the upload of attachments:


https://blackmail.k2.com/Messages/Multiple-file-uploaded-control-with-drag-and-drop.html


It is being considered for a future release of the product. 


 


Regards,


Kimberly 



K2 will not accept any liability for any issues arising from actions taken in respect of information provided by any forum member.

Thanks  @lkimberly for the reply.

Also the library mentioned in my post works fine for me now in K2 5.3 . 
_getImageURL() in .js file is giving the issue. For now we can comment the way web resource files are referenced in this method -- 

imageURL = <%= WebResource("DragAndDropControl.Resources.CSVGeneric.png")%>

Build the dll , register it and it works fine for single file drag and drop upload.

Userlevel 5
Badge +13
Sorry to bring this thread back but do you still have anything related to the article you reference here? It no longer appears to be a valid link

@chaa 


When you have a second can you share your solution?  The thread referenced is no longer valid and any direction would be appreciated.

Reply