vue-simple-uploader自定義參數
processParams 處理請求參數,預設 function (params) {return params},一般用于修改參數名字或者删除參數。0.5.2版本後,processParams 會有更多參數:(params, Uploader.File, Uploader.Chunk, isTest)
options: {
processParams:(file)=>{
return {
currentNumber:file.chunkNumber,
currentSize:file.chunkSize,
totalChunk:file.totalChunks,
totalSize:file.totalSize,
chunkSize:file.chunkSize,
identifier:file.identifier,
}
},
}