Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

element 上传组件上传成功获取服务器返回的地址

有个表单有个图片上传,图片传完服务器会返回一个地址给我,我拿到后在带给服务器,翻了翻el文档好像没说怎么获取这个地址,请问老哥们都怎么处理的


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

可以在before-upload中获取到文件流,调用接口传递给后端,上传cdn或者本地服务器,返回一个地址到前端接受。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...