springboot + uniapp implements single file upload and image echoing
1. Use the uni-file-picker component tag For specific usage, please see the introduction of uni-file-picker on the official website of uniapp. Front-end code The code is as follows. It is uploaded to the backend through uni.uoloadFile and returns url. The address is assigned value for image echo. <template> <view class=”container”> <uni-file-picker file-mediatype=”image” mode=”grid” @select=”select” />…