From 7fa324bc07e06b07579ba52f95fc3b7b98815ede Mon Sep 17 00:00:00 2001
From: Andymick
Date: Sun, 19 Jul 2026 11:47:09 +0100
Subject: [PATCH] Fix: Remove encType from product edit form with Server Action
The form was specifying both a Server Action AND encType='multipart/form-data',
which caused a React warning and slow submissions (26+ seconds). Next.js
automatically handles encoding for Server Actions, so encType should not be
specified. Submission now completes in ~3 seconds.
Co-Authored-By: Claude Haiku 4.5
---
src/app/admin/products/[id]/edit/page.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/admin/products/[id]/edit/page.tsx b/src/app/admin/products/[id]/edit/page.tsx
index aac09a4..0e3327b 100644
--- a/src/app/admin/products/[id]/edit/page.tsx
+++ b/src/app/admin/products/[id]/edit/page.tsx
@@ -29,7 +29,7 @@ export default async function EditProductPage({ params }: { params: { id: string
Changes apply immediately to the live product at /made-to-order/{product.slug}.
-