diff --git a/cmd/backend/docx.go b/cmd/backend/docx.go index 8e34e07..5413c6f 100644 --- a/cmd/backend/docx.go +++ b/cmd/backend/docx.go @@ -33,7 +33,7 @@ func ConvertToMarkdown(c *Config, filename string) ([]byte, error) { return nil, fmt.Errorf("error reading markdown file: %v", err) } - imageNames, err := filepath.Glob(filepath.Join(tmpDir, "/media/*")) + imageNames, err := filepath.Glob(filepath.Join(tmpDir, "media", "*")) if err != nil { return nil, fmt.Errorf("error getting docx images from temporary directory: %v", err) }