这是跨域上传的效果
```javascript
<el-upload
class="upload-demo"
action="api/cgi-bin/SystemUpgrade.cgi?match:TX6000.202"
:on-change="handleChange"
:on-success="func"
:file-list="fileList"
:on-remove="rem">
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">{{b}}</div>
</el-upload>
handleChange(file, fileList) {
this.fileList = fileList.slice(-3);
console.log(file)
let allowType = [".bin"]
if(!file.name.match(allowType)){
this.$message.error("格式不正确")
this.fileList=this.fileList.filter(item=>item.url !==file.url)
return
}
},
beforeUpload(file) {
const isLt2M = file.size / 1024 / 1024 < 10 //这里做文件大小限制
if(!isLt2M) {
this.$message({
message: '上传文件大小不能超过 10MB!',
type: 'warning'
});
}
return isLt2M
},
###### 运行结果及报错内容
但是直接在服务器上运行进度条满了之后文件就消失了





###### 我的解答思路和尝试过的方法
###### 我想要达到的结果
这个问题怎么解决呢
前端没问题 ,那就 后端 看看 有没有问题。