Dropzone

2022-05-17

install::

github::

docs:: https://docs.dropzone.dev/


传递完整路径名或自定义数据

Dropzone.autoDiscover = false;
var myDropzone = new Dropzone("#my-dropzone", {
url: "/upload",
dictDefaultMessage: "拖动文件夹进行上传",
paramName: "中公",
});
myDropzone.on("sending", function (file, xhr, formData) {
// get the original fullPath and add it to the multipart form.
var blob = new Blob([file.fullPath], { type: "text/plain" });
formData.append("originalPath", blob);
});