Skip to content
Snippets Groups Projects
Unverified Commit 3277bbe1 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Fix tempfile handling for SVG thumbnailing

parent 37d91797
No related branches found
No related tags found
No related merge requests found
...@@ -350,7 +350,7 @@ func svgToImage(media *types.Media, ctx context.Context, log *logrus.Entry) (ima ...@@ -350,7 +350,7 @@ func svgToImage(media *types.Media, ctx context.Context, log *logrus.Entry) (ima
return nil, err return nil, err
} }
f, err := os.Open(tempFile1) f, err := os.OpenFile(tempFile1, os.O_RDWR|os.O_CREATE, 0640)
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment