File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,13 @@ export interface StorageAdapter {
146
146
* @param key - The key of the file to be uploaded e.g. "uploads/file.txt"
147
147
* @param expiresIn - The expiration time in seconds for the presigned URL
148
148
* @param contentType - The content type of the file to be uploaded
149
+ *
150
+ * @returns A promise that resolves to an object containing the upload URL and any extra parameters which should be sent with PUT multipart form data
149
151
*/
150
- getUploadSignedUrl ( key : string , contentType : string , expiresIn ?: number ) : Promise < string > ;
152
+ getUploadSignedUrl ( key : string , contentType : string , expiresIn ?: number ) : Promise < {
153
+ uploadUrl : string ;
154
+ uploadExtraParams ?: Record < string , string > ;
155
+ } > ;
151
156
152
157
/**
153
158
* This method should return the URL for the given key capable of download (200 GET request with response or 200 HEAD request without response).
You can’t perform that action at this time.
0 commit comments