Skip to content

Commit

Permalink
Prevent double . in filename
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Jan 8, 2025
1 parent 4e77067 commit 8986f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend-common/src/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const getSignedUploadUrl = (
? {
...metadata,
originalFilename: fileName,
extension: path.extname(fileName),
extension: path.extname(fileName).replace('.', ''),
}
: metadata;
return getSignedUrlSdk(
Expand Down

0 comments on commit 8986f82

Please sign in to comment.