Answer the question
In order to leave comments, you need to log in
Do not load images through the glide library?
params := mux.Vars(r)
path := "../../files/" + params["user_id"] + "/" + params["file_id"]
http.ServeFile(w,r,path)
Answer the question
In order to leave comments, you need to log in
o_O
So this is the path relative to what? Glide can't open local files like this. Perhaps he can, if you specify the path through file:// and have read permissions ... but this is not a fact. And why such a strange way?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question