We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5be136d commit 2a0445eCopy full SHA for 2a0445e
.changeset/shaggy-cycles-go.md
@@ -0,0 +1,5 @@
1
+---
2
+"@obosbbl/grunnmuren-react": patch
3
4
+
5
+FileUpload: fix bug with not adding fileType to files that have been renamed
packages/react/src/file-upload/file-upload.tsx
@@ -99,6 +99,9 @@ function uniqueFileNames(files: File[]) {
99
[file],
100
// Follow the pattern of adding a number in parentheses to the base name (e.g. "file (1).txt")
101
`${baseName} (${fileNameCounts[baseName] - 1})${extension}`,
102
+ {
103
+ type: file.type,
104
+ },
105
);
106
}
107
0 commit comments