How To Change drop_element in Plupload

901 views Asked by At

I am using plupload version 2.0. For Drag and Drop I have given the element id let say container1. On some Javascript event I want to change the dragAndDrop container holding the plugin object. I tried changing the property dynamically using uploader.setting.drop_element=$('#container2'), but didn't get the expected result. Searched on the web but not able to find a working solution.Is there any alternative way to solve the problem? Please help me out.

Thanks in advance

2

There are 2 answers

2
Ferry Kranenburg On

This should work:

var uploader = new plupload.Uploader({
    drop_element : $('container2')
})
0
Prannoy Mittal On

this(uploader instance).settings.drop_element = "new dom element" dynamically will change the drop_element