I'm using dropzone.js to upload files to my server. That's how the file looks like:
<div id="full_site">
<form id="uploadFile" method="post" name="uploadFile" action="upload.php"
class="dropzone needsclick dz-clickable full-height">
<span id="tmp-path"></span>
<div class="dz-message"><b></b></div>
</form>
</body>
<script>
$(document).ready(function () {
Dropzone.autoDiscover = false;
Dropzone.options.uploadFile = {
init: function () {
this.on("success", function (file, responseText) {
file.previewTemplate.appendChild(document.createTextNode(responseText));
});
this.on("sending", function (file) {
$("#tmp-path").html('<input type="hidden" name="path" value="' + file.fullPath + '" />')
});
}
};
var myDropzone = new Dropzone("#uploadFile", {
url: "upload.php"
});
});
</script>
What I try to achieve is, that there are no upload previews shown any more, so they are no previews for each file any more, but a progress bar, that show's the overall process of the complete upload (maybe only show an error if there is one, but otherwise do not show every single item). Is there any way I can achieve this?
Edit: an optional point would be to show this progress bar in a bootstrap modal, so it doesn't change anything on the site when you upload something.