Skip to content

Commit 49f7bfd

Browse files
committed
fix(files): quick fix when uploading record file into connected mongodb
when you connect mongodb you have cluster connected. To work properly you need pass cluster id into each request. That was missing when image is upload
1 parent c602c6f commit 49f7bfd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/components/files.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export async function uploadFile({
118118
headers: {
119119
'X-CM-ProjectId': Config.projectId,
120120
Authorization: `Bearer ${secretKey || Config.secretKey}`,
121-
'X-CM-Cluster': cluster || '',
122121
},
123122
body: formData,
124123
}

0 commit comments

Comments
 (0)