错误 post dropzoneJs
error post dropzoneJs
我将显示服务器上的现有文件,然后我想获取文件名
我有这样的代码,但是当我点击提交时,dosent 为我工作
没有文件名:内容配置:表单数据;名字="file[0]"
var adPhotosDropzoneEdit = new Dropzone(".Edit", {
url: domainAdit,
autoProcessQueue: false,
uploadMultiple: true,
parallelUploads: 10,
clickable: '#upload__button__hole__map_edit',
previewsContainer: '#preview-template-2',
dictCancelUpload: "",
addRemoveLinks: true,
dictRemoveFile: "x",
acceptedFiles: ".jpeg,.jpg,.png,.gif,.JPEG,.JPG,.PNG,.GIF",
headers: {
'X-CSRF-Token': token
},
init: function() {
var mockFile = {
name: "20160531101532_asasas.jpeg",
size: 12345,
type: 'image/jpeg'
};
this.addFile.call(this, mockFile);
this.options.thumbnail.call(this, mockFile, base_url + "/front/hole/hole_gallery/download.jpg");
},
/*init: function () {
this.on("completemultiple", function (file) {
this.removeAllFiles();
});
},*/
});
dropozone 默认值 "request Payload" 类似于:
Content-Disposition:表单数据;名字="file"
如果"uploadMultiple :true",那么它会像:
Content-Disposition:表单数据;名字="file[]"
我将显示服务器上的现有文件,然后我想获取文件名
我有这样的代码,但是当我点击提交时,dosent 为我工作 没有文件名:内容配置:表单数据;名字="file[0]"
var adPhotosDropzoneEdit = new Dropzone(".Edit", {
url: domainAdit,
autoProcessQueue: false,
uploadMultiple: true,
parallelUploads: 10,
clickable: '#upload__button__hole__map_edit',
previewsContainer: '#preview-template-2',
dictCancelUpload: "",
addRemoveLinks: true,
dictRemoveFile: "x",
acceptedFiles: ".jpeg,.jpg,.png,.gif,.JPEG,.JPG,.PNG,.GIF",
headers: {
'X-CSRF-Token': token
},
init: function() {
var mockFile = {
name: "20160531101532_asasas.jpeg",
size: 12345,
type: 'image/jpeg'
};
this.addFile.call(this, mockFile);
this.options.thumbnail.call(this, mockFile, base_url + "/front/hole/hole_gallery/download.jpg");
},
/*init: function () {
this.on("completemultiple", function (file) {
this.removeAllFiles();
});
},*/
});
dropozone 默认值 "request Payload" 类似于: Content-Disposition:表单数据;名字="file"
如果"uploadMultiple :true",那么它会像: Content-Disposition:表单数据;名字="file[]"