up
This commit is contained in:
parent
867f46c1fc
commit
89a37a1c7c
@ -661,7 +661,7 @@ func StreamHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
renderTemplate(w, "folders", data)
|
renderTemplate(w, "folders", data)
|
||||||
}
|
}
|
||||||
func DetailHandler(w http.ResponseWriter, r *http.Request) {
|
func DetailHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
base := "static/uploads"
|
base := "/app/uploads"
|
||||||
rel := r.URL.Query().Get("path")
|
rel := r.URL.Query().Get("path")
|
||||||
info, err := os.Stat(filepath.Join(base, rel))
|
info, err := os.Stat(filepath.Join(base, rel))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user