Skip to content

Commit

Permalink
chore(wip): own signature impl
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti committed Nov 2, 2023
1 parent 4c673aa commit d66bd3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/client/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function createUploadSignature(file: Blob): Promise<string> {
const { signature } = await dispatchRequest<
UploadSignatureData,
UploadSignatureResponse
>('POST', 'https://rest.alpha.fal.ai/storage/upload/signature', {
>('POST', 'https://rest.daniel.shark.fal.ai/storage/upload/signature', {
file_name: file.name,
file_size: file.size,
});
Expand All @@ -75,13 +75,12 @@ export const storageImpl: StorageSupport = {
const formData = new FormData();
formData.append('file', file, filename ?? file.name);
const response = await fetch(
'https://rest.alpha.fal.ai/storage/upload/signed',
'https://rest.daniel.shark.fal.ai/storage/upload/signed',
{
method: 'POST',
headers: {
Accept: 'application/json',
Authorization: `Signature ${signature}`,
ContentType: 'multipart/form-data',
},
body: formData,
}
Expand Down

0 comments on commit d66bd3f

Please sign in to comment.