How to upload a picture to the backend using the vue+Element framework, that is, store the path of the image to the database through an api, and upload the file to the server at the same time.

currently, I want to upload thumbnails of pictures in batches at the front end. I want to save the image path to the database by calling an api, and upload the files to the server. How to do this? this part has not been touched.


1. You need to build a backend here, you can consider java,php,python, etc., or you can use the NodeJs that you are familiar with

.

2. The chief gets the data of the picture, transfers the image upload interface to the server and returns the picture address, and then stores the picture address in the database

3. The backend needs to handle the number of APIs
file upload interface
data storage database interface

Menu