Skip to content

Commit 99f363f

Browse files
committed
renames signedUrl
1 parent e0c001c commit 99f363f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/storage/StorageApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class StorageApi {
100100
/**
101101
* Uploads a file to an existing bucket.
102102
*
103-
* @param path The relative file path including the bucket ID. Should be of the format `bucket/folder/subfolder`. The bucket already exist before attempting to upload.
103+
* @param path The relative file path including the bucket ID. Should be of the format `bucket/folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
104104
* @param file The File object to be stored in the bucket.
105105
* @param fileOptions HTTP headers. For example `cacheControl`
106106
*/
@@ -208,15 +208,15 @@ export class StorageApi {
208208
async createSignedUrl(
209209
path: string,
210210
expiresIn: number
211-
): Promise<{ data: { signedURL: string } | null; error: Error | null }> {
211+
): Promise<{ data: { signedUrl: string } | null; error: Error | null }> {
212212
try {
213213
let data = await post(
214214
`${this.url}/object/sign/${path}`,
215215
{ expiresIn },
216216
{ headers: this.headers }
217217
)
218-
const signedURL = `${this.url}${data.signedURL}`
219-
data = { ...data, signedURL }
218+
const signedUrl = `${this.url}${data.signedUrl}`
219+
data = { ...data, signedUrl }
220220
return { data, error: null }
221221
} catch (error) {
222222
return { data: null, error }

0 commit comments

Comments
 (0)