diff --git a/src/pages/product-options/product-option-form/ProductOptionFormPage.tsx b/src/pages/product-options/product-option-form/ProductOptionFormPage.tsx index b3d0767..57af3da 100644 --- a/src/pages/product-options/product-option-form/ProductOptionFormPage.tsx +++ b/src/pages/product-options/product-option-form/ProductOptionFormPage.tsx @@ -131,7 +131,8 @@ const ProductOptionFormPage = () => { url: result.url }; setUploadedImage(imageData); - setValue('maintenance.image', result.id, { shouldValidate: true, shouldDirty: true }); + // Store the file URL (not the internal id) in the form state so the backend receives the URL + setValue('maintenance.image', result.url, { shouldValidate: true, shouldDirty: true }); return result; } catch (error) { console.error('Upload error:', error);