@stoker-platform/web-app 0.5.142 → 0.5.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/Files.tsx +8 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/Files.tsx
CHANGED
|
@@ -892,8 +892,15 @@ export const RecordFiles = ({ collection, record }: FilesProps) => {
|
|
|
892
892
|
return
|
|
893
893
|
}
|
|
894
894
|
|
|
895
|
+
if (!currentUser?.uid) return
|
|
895
896
|
const newRef = ref(storage, newPath)
|
|
896
|
-
await uploadBytesResumable(newRef, uploadContent, {
|
|
897
|
+
await uploadBytesResumable(newRef, uploadContent, {
|
|
898
|
+
contentType: metadata.contentType,
|
|
899
|
+
customMetadata: {
|
|
900
|
+
...metadata.customMetadata,
|
|
901
|
+
createdBy: currentUser?.uid,
|
|
902
|
+
},
|
|
903
|
+
})
|
|
897
904
|
|
|
898
905
|
await deleteObject(originalRef)
|
|
899
906
|
|