I have a dropzone on my view and would like to set some options to force the files to be .zip. I also need to allow for these files to be bigger and get some information when it returns. The options don't seem to be loading for me and quecomplete never gets hit.
Edit.cshtml:
<div class="row">
<div class="col-8">
<form asp-action="UploadFiles" class="dropzone" id="versionFiles">
</form>
</div>
</div>
@section Scripts {
<script>
$(document).ready(function () {
Dropzone.options.versionFiles = {
acceptedFiles: ".zip",
maxFileSize: 2048,
timeout: 600000,
init: function () {
this.on("queuecomplete", function (file, response) {
console.log(file);
})
}
};
})
</script>
}
Edit: Fixed timeout