element icon indicating copy to clipboard operation
element copied to clipboard

upload上传文件

Open DevilLeven opened this issue 10 years ago • 0 comments

upload上传文件时能不能附带其他参数,而不是以get形式拼接在URL后面 现在的上传源码

ajax(this.action, {
        headers: this.headers,
        withCredentials: this.withCredentials,
        file: file,
        filename: this.name,
        onProgress: e => {
          this.onProgress(e, file);
        },
        onSuccess: res => {
          this.onSuccess(res, file);
        },
        onError: err => {
          this.onError(err, file);
        }
});

DevilLeven avatar Oct 09 '16 08:10 DevilLeven