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 9e7cc56 commit b93b481Copy full SHA for b93b481
src/providers/database/FireClient.ts
@@ -48,10 +48,15 @@ export class FireClient {
48
const uploads = result.uploads;
49
await Promise.all(
50
uploads.map(async (u) => {
51
+
52
+ const fileNameBits = u.rawFile instanceof File ? u.rawFile.name.split('.') ?? null : null;
53
54
+ const extension = fileNameBits === null || fileNameBits.length === 0 ? '' : '.' + fileNameBits.pop();
55
56
const link = await this.uploadAndGetLink(
57
u.rawFile,
58
docPath,
- u.fieldSlashesPath,
59
+ u.fieldSlashesPath + extension,
60
!!this.options.useFileNamesInStorage
61
);
62
set(data, u.fieldDotsPath + ".src", link);
0 commit comments