The second time I used an image with the same file name, when I uploaded it, it was prompted that the file already existed, the path could not be saved in the database, and the file name could not be saved in the database, resulting in no display. , please tell me where to add code to solve this problem?
Second question, where to add code to compress image file size