upload: Name the link based on the uploaded filename.

We previously parsed the filename as stored on disk, which is rather
sanitized.  Use as close to the original filename as possible.
This commit is contained in:
Alex Vandiver
2024-08-30 03:03:24 +00:00
committed by Tim Abbott
parent 8e5cdcc174
commit 8bd94b82bf
2 changed files with 8 additions and 4 deletions

View File

@@ -501,6 +501,7 @@ test("uppy_events", ({override_rewire, mock_template}) => {
let response = {
body: {
url: "/user_uploads/4/cb/rue1c-MlMUjDAUdkRrEM4BTJ/copenhagen.png",
filename: "copenhagen.png",
},
};