Skip to content

Commit

Permalink
Update Guide/file-storage.markdown
Browse files Browse the repository at this point in the history
Co-authored-by: Marc Scholten <marc@digitallyinduced.com>
  • Loading branch information
amitaibu and mpscholten authored Jul 13, 2024
1 parent 48f14ab commit 9c30a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Guide/file-storage.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ instance Controller ImageStyleController where
{ directory = imageStylePathDirectory
, preprocess = applyImageMagick "jpg" ["-resize", cs size <> "^", "-gravity", "center", "-extent", cs size, "-quality", "85%", "-strip"]
-- Keep the original filename.
, fileName = UUID.fromString (cs uuid)
, fileName = UUID.fromText uuid
}

storedFile <- storeFileFromPath (cs $ storagePrefix <> originalImageDirectory <> "/" <> uuid) options
Expand Down

0 comments on commit 9c30a9f

Please sign in to comment.