Dropzone plugin is used toi handle the file uploads. Below are some common initializations just for example to see it in action.
// Dropzone class:
var myDropzone = new Dropzone("div#initDropzoneProgrammatically", { url: "/file/post"});
// jQuery
$("div#initDropzoneProgrammatically").dropzone({ url: "/file/post" });