From 7dcadc660f515657b9254ea24e8f60f667da78ff Mon Sep 17 00:00:00 2001 From: Anshuman Pandey <54475686+pandeymangg@users.noreply.github.com> Date: Tue, 24 Oct 2023 19:11:04 +0530 Subject: [PATCH] fix: fixes client storage api route method (#1451) --- apps/web/app/api/v1/client/storage/local/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/api/v1/client/storage/local/route.ts b/apps/web/app/api/v1/client/storage/local/route.ts index 969da3dcaa..a856fa9ad7 100644 --- a/apps/web/app/api/v1/client/storage/local/route.ts +++ b/apps/web/app/api/v1/client/storage/local/route.ts @@ -11,7 +11,7 @@ import { getSurvey } from "@formbricks/lib/survey/service"; import { getTeamByEnvironmentId } from "@formbricks/lib/team/service"; import { validateLocalSignedUrl } from "@formbricks/lib/crypto"; -export async function PUT(req: NextRequest): Promise { +export async function POST(req: NextRequest): Promise { const accessType = "private"; // private files are accessible only by authorized users const headersList = headers();