我在下面尝试了这些代码,但没有用。 我想自定义dropzone模板。
那是我的代码:
<form action="#" class="dropzone">
<div class="fallback">
<input name="file" type="file" multiple />
</div>
<div class="dz-preview dz-file-preview">
<div class="dz-details">
<div class="dz-filename"><span data-dz-name></span></div>
<div class="dz-size" data-dz-size></div>
<img data-dz-thumbnail />
</div>
</div>
<button id="Send">Send</button>
</form>
js代码:
//Disabling autoDiscover
Dropzone.autoDiscover = true;
var myDropzone = new Dropzone(".dropzone", {
url: "",
paramName: "file",
maxFilesize: 2,
maxFiles: 10,
acceptedFiles: "image/*,application/pdf",
autoProcessQueue: false
});
How to customize it ?