Fix registration 415: send multipart form data with ID images
All checks were successful
Build frontend / build (push) Successful in 1m10s

- addCustomer/addOwner now use FormData with multipart upload
- Front and back ID images appended as FrontIdCarImage/RearIdCarImage
- Registration pages pass idImages.front and idImages.back to API
- Field names mapped to PascalCase for .NET API (FullName, Email, etc.)
This commit is contained in:
Claw AI
2026-03-28 15:15:09 +00:00
parent c2235cf575
commit 2424da2d45
4 changed files with 96 additions and 31 deletions

View File

@ -132,7 +132,7 @@ export default function OwnerRegisterPage() {
};
try {
const res = await addOwner(payload);
const res = await addOwner(payload, idImages.front, idImages.back);
console.log('[OwnerRegister] addOwner response:', res);
if (res.status === 200 || res.ok) {

View File

@ -128,7 +128,7 @@ export default function TenantRegisterPage() {
};
try {
const res = await addCustomer(payload);
const res = await addCustomer(payload, idImages.front, idImages.back);
console.log('[CustomerRegister] addCustomer response:', res);
if (res.status === 200 || res.ok) {