Skip to content

Commit b904e6f

Browse files
authored
Docs update for Extensions and putFile (#10248)
1 parent 439b42d commit b904e6f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

FirebaseStorage/Sources/AsyncAwait.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import Foundation
5757
}
5858

5959
/// Asynchronously uploads a file to the currently specified StorageReference.
60+
/// `putDataAsync` should be used instead of `putFileAsync` in Extensions.
6061
///
6162
/// - Parameters:
6263
/// - url: A URL representing the system file path of the object to be uploaded.

FirebaseStorage/Sources/StorageReference.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ import Foundation
174174

175175
/**
176176
* Asynchronously uploads a file to the currently specified `StorageReference`.
177+
* `putData` should be used instead of `putFile` in Extensions.
177178
* - Parameters:
178179
* - fileURL: A URL representing the system file path of the object to be uploaded.
179180
* - metadata: `StorageMetadata` containing additional information (MIME type, etc.)
@@ -188,6 +189,7 @@ import Foundation
188189
/**
189190
* Asynchronously uploads a file to the currently specified `StorageReference`,
190191
* without additional metadata.
192+
* `putData` should be used instead of `putFile` in Extensions.
191193
* @param fileURL A URL representing the system file path of the object to be uploaded.
192194
* @return An instance of StorageUploadTask, which can be used to monitor or manage the upload.
193195
*/
@@ -197,6 +199,7 @@ import Foundation
197199

198200
/**
199201
* Asynchronously uploads a file to the currently specified `StorageReference`.
202+
* `putData` should be used instead of `putFile` in Extensions.
200203
* - Parameters:
201204
* - fileURL: A URL representing the system file path of the object to be uploaded.
202205
* - metadata: `StorageMetadata` containing additional information (MIME type, etc.)

0 commit comments

Comments
 (0)