install:: pip install flask-dropzone
use:: from flask_dropzone import Dropzone
github:: https://github.com/helloflask/flask-dropzone
docs:: Flask-Dropzone
# 初始化
from flask_dropzone import Dropzone
app = Flask(__name__)
dropzone = Dropzone(app)
问题
传递完整文件路径名 ^b38878
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);
});