When downloading a file in a font format, the FileUpload component itself is a dropout zone. I want to create several dropzones, for example, if the user drops files in any other div or table, the Primails File upload component should select this.
I tried to trigger the drop event manually for the feather loading component, but this does not work.
Please help me with this. Thanks in advance!
Here is what I tried
$('.otherdropzone').on( 'dragover', function(e) { e.preventDefault(); } ); $('.otherdropzone').on( 'dragenter', function(e) { e.preventDefault(); } ); $(".otherdropzone").on('drop', function(e){ e.preventDefault(); $(".fileupload-content").trigger('drop',e);
Similarly, by changing the arguments for the trigger class and Primefaces drag zones, such as .files and .ui-fileupload
source share