Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix the upload

Kiran Kd441eb48d2b2
diff --git a/apps/web/ui/integrations/add-edit-integration-form.tsx b/apps/web/ui/integrations/add-edit-integration-form.tsx
index 67a05c211f..c60dac23a8 100644
--- a/apps/web/ui/integrations/add-edit-integration-form.tsx
+++ b/apps/web/ui/integrations/add-edit-integration-form.tsx
@@ -144,7 +144,7 @@ export default function AddEditIntegrationForm({
setScreenshots((prev) => [...prev, { file, uploading: true }]);
const response = await fetch(
- `/api/oauth/apps/upload?name=${file.name}&size=${file.size}&workspaceId=${workspaceId}`,
+ `/api/oauth/apps/upload-screenshot?name=${file.name}&size=${file.size}&workspaceId=${workspaceId}`,
{
method: "GET",
},
@@ -166,7 +166,7 @@ export default function AddEditIntegrationForm({
);
const uploadResponse = await fetch(signedUrl, {
- method: "POST",
+ method: "PUT",
body: form,
headers: {
"Content-Type": "multipart/form-data",