javascript - dropzone with jquery and its options -
i using dropzone file attachment , upload, dont want bind dropzone form elements can not put form inside form,
so binded div element using jquery,
i can upload document correctly this, can not find way give options when using jquery,
below codes,
i had binded dropzone class , id, if remove class, dropzone not attaching div , can not attach file.
<div class="dropzone" id="dropzoneattach"> </div>
here jquery,
$("#dropzoneattach").dropzone({ paramname : 'userfile', url: "<?php echo base_url()?>index.php/news/add_attachments", });
why binding this, because want file name uploads userfile, not file.
while doing way, can not upload file,
if there wrong? how give dropzone options when dropzone creating programatically, tried in documentation not understood,
thanks advanced.
finally, found myself, below binded class,
$(".dropzone").dropzone({ paramname : 'userfile', url: "<?php echo base_url()?>index.php/news/add_attachments" )}
Comments
Post a Comment