How to write the image upload code in the add in the Data controller! I can't add it according to the previous method! Can you give me a sample code? How should I add pictures to upload here? Please help
replyAfter uploading your picture, can you get the name of the picture? If you can provide the name and path of the image, it will definitely be saved in the database.
TP Please refer to the document for uploading image processing in the TP manual, it is written in very detail
In the add method, call the image upload class, and then save the uploaded image path to the database