Replies: 1 comment
-
To temporary solve my problem, i had to manually validate in the folowing way: const payload = request.all()
const files = request.allFiles()
const dataPayload = await ValidatorCompanyData.validate(payload)
const filesPayload = await ValidatorCompanyMetadata.validate(files)
const data = {
id: dataPayload.id,
company: {
...dataPayload.company,
metadata: { ...dataPayload.company.metadata, ...filesPayload.company.metadata },
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For some reason, when trying to PUT with multipart/form-data vinejs give me error in field
company.name
,company.document
, etc...And they exist and have values, if i don't send File it works.
Debugging the aodnis and vine when i process the multipart (manually) the other fields are gone.
Any suggestion?
My Validator
Where i validate
Beta Was this translation helpful? Give feedback.
All reactions