Skip to content

Commit 9578b49

Browse files
committed
fix
1 parent caed6c5 commit 9578b49

File tree

1 file changed

+4
-8
lines changed
  • packages/cubejs-backend-cloud/src

1 file changed

+4
-8
lines changed

packages/cubejs-backend-cloud/src/cloud.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,18 @@ export class CubeCloudClient {
113113
const formData = new FormData();
114114
formData.append('transaction', JSON.stringify(transaction));
115115
formData.append('fileName', fileName);
116-
formData.append('file', {
117-
value: data,
118-
options: {
119-
filename: path.basename(fileName),
120-
contentType: 'application/octet-stream'
121-
}
116+
formData.append('file', data, {
117+
filename: path.basename(fileName),
118+
contentType: 'application/octet-stream'
122119
});
123120

124121
// Get the form data buffer and headers
125-
const formDataBuffer = formData.getBuffer();
126122
const formDataHeaders = formData.getHeaders();
127123

128124
return this.request({
129125
url: (deploymentId: string) => `build/deploy/${deploymentId}/upload-file${this.extendRequestByLivePreview()}`,
130126
method: 'POST',
131-
body: formDataBuffer,
127+
body: formData,
132128
headers: {
133129
...formDataHeaders,
134130
},

0 commit comments

Comments
 (0)