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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b302fb-2bcee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b302fb-2bcee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?