File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
packages/cubejs-backend-cloud/src Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments