diff --git a/handlers/files.go b/handlers/files.go index 179786d..db12f4c 100644 --- a/handlers/files.go +++ b/handlers/files.go @@ -73,7 +73,7 @@ func DeleteHandler(w http.ResponseWriter, r *http.Request) { // 2. Delete each file for _, name := range filenames { - fullPath := filepath.Join(uploadDir, filepath.Base(name)) // Base() for security + fullPath := filepath.Join(uploadDir, filepath.Base(name)) os.Remove(fullPath) }