Hello, everybody.
The image upload handle is correct.
but I can’t display images.
Is it similar to?
For example Pimage has next value.
.Pimage = “./template-images/p1.jpg”
And the image exist in template-images directory.
-project
-template-images
-p1.jpg
-main.go
and It doesn’t show the image.
Thank you.
I just found the solution.
I added
http.Handle("/temp-images/", http.StripPrefix("/temp-images", http.FileServer(http.Dir(“temp-images/”))));