We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01967a3 commit b2f5b0cCopy full SHA for b2f5b0c
src/lib/storage/StorageApi.ts
@@ -199,11 +199,13 @@ export class StorageApi {
199
expiresIn: number
200
): Promise<{ data: { signedURL: string } | null; error: Error | null }> {
201
try {
202
- const data = await post(
+ let data = await post(
203
`${this.url}/object/sign/${path}`,
204
{ expiresIn },
205
{ headers: this.headers }
206
)
207
+ const signedURL = `${this.url}${data.signedURL}`
208
+ data = { ...data, signedURL }
209
return { data, error: null }
210
} catch (error) {
211
return { data: null, error }
0 commit comments