Skip to content

Commit

Permalink
fix: don't encode slug
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeize committed Aug 5, 2023
1 parent 6983e91 commit b5c9ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ app.post("/upload", auth(), async (c) => {

let filename;
if (slug) {
filename = encodeURIComponent(slug as string);
filename = slug
} else {
filename = nanoid(idLength(c.req.header("Name-Length"), 8));
}
Expand Down

0 comments on commit b5c9ad2

Please sign in to comment.