Skip to content

Commit

Permalink
feat: introduce fal cdn v3 with storage API
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Nov 21, 2024
1 parent 8c24bdf commit c1a01d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/client/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ async function initiateUpload(
file.name || `${Date.now()}.${getExtensionFromContentType(contentType)}`;
return await dispatchRequest<InitiateUploadData, InitiateUploadResult>({
method: "POST",
targetUrl: `${getRestApiUrl()}/storage/upload/initiate`,
// NOTE: We want to test V3 without making it the default at the API level
targetUrl: `${getRestApiUrl()}/storage/upload/initiate?storage_type=fal-cdn-v3`,
input: {
content_type: contentType,
file_name: filename,
Expand Down

0 comments on commit c1a01d0

Please sign in to comment.