Fix registration 415: send multipart form data with ID images
All checks were successful
Build frontend / build (push) Successful in 1m10s
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:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user