@@ -29,7 +29,7 @@ import {
29
29
updateMetadata as requestsUpdateMetadata ,
30
30
getDownloadUrl as requestsGetDownloadUrl ,
31
31
deleteObject as requestsDeleteObject ,
32
- simpleUpload
32
+ multipartUpload
33
33
} from './implementation/requests' ;
34
34
import { StringFormat , dataFromString } from './implementation/string' ;
35
35
import { Metadata } from './metadata' ;
@@ -135,15 +135,15 @@ export async function uploadBytes(
135
135
) : Promise < UploadTaskSnapshot > {
136
136
ref . _throwIfRoot ( 'uploadBytes' ) ;
137
137
const authToken = await ref . storage . getAuthToken ( ) ;
138
- const requestInfo = simpleUpload (
138
+ const requestInfo = multipartUpload (
139
139
ref . storage ,
140
140
ref . _location ,
141
141
getMappings ( ) ,
142
142
new FbsBlob ( data ) ,
143
143
metadata
144
144
) ;
145
- const request = ref . storage . makeRequest ( requestInfo , authToken ) ;
146
- const finalMetadata = await request . getPromise ( ) ;
145
+ const multipartRequest = ref . storage . makeRequest ( requestInfo , authToken ) ;
146
+ const finalMetadata = await multipartRequest . getPromise ( ) ;
147
147
return {
148
148
metadata : finalMetadata ,
149
149
ref
@@ -193,15 +193,15 @@ export async function uploadString(
193
193
if ( metadataClone [ 'contentType' ] == null && data . contentType != null ) {
194
194
metadataClone [ 'contentType' ] = data . contentType ! ;
195
195
}
196
- const requestInfo = simpleUpload (
196
+ const requestInfo = multipartUpload (
197
197
ref . storage ,
198
198
ref . _location ,
199
199
getMappings ( ) ,
200
200
new FbsBlob ( data . data , true ) ,
201
201
metadataClone
202
202
) ;
203
- const request = ref . storage . makeRequest ( requestInfo , authToken ) ;
204
- const finalMetadata = await request . getPromise ( ) ;
203
+ const multipartRequest = ref . storage . makeRequest ( requestInfo , authToken ) ;
204
+ const finalMetadata = await multipartRequest . getPromise ( ) ;
205
205
return {
206
206
metadata : finalMetadata ,
207
207
ref
0 commit comments