我使用Dropzone选择要上传的文件。
我可以通过ajax put request获取文件实例并发送它吗?
例如:
$.put = function (url, data) {
return $.ajax({
url: url,
type: 'PUT',
contentType: 'application/json; charset=utf-8',
data: data // Where is data avaliable in dropzone as data-binary, not as object with file's params?
});
}