Closed LaurensBurger closed 1 day ago
2.8.x
No response
upload:
{ "url": "https://openforms.foo/api/v2/submissions/files/2ebb2aca-af3a-43a3-8af5-9242bb4bfb2b", "name": " mei 2024 .pdf", "size": 766150 }
json in validate request:
{ "storage": "url", "name": " mei 2024 -9ef7ca02-e1fd-48a9-b8b5-1f62913bcef1.pdf", "url": "https://openforms.foo/api/v2/submissions/files/2ebb2aca-af3a-43a3-8af5-9242bb4bfb2b", "size": 766150, "type": "application/pdf", "data": { "url": "https://openforms.foo/api/v2/submissions/files/2ebb2aca-af3a-43a3-8af5-9242bb4bfb2b", "name": " mei 2024 .pdf", "size": 766150, "baseUrl": "https://openforms.foo/api/v2/", "project": "", "form": "" }, "originalName": " mei 2024 .pdf" }
response:
{ "type": "https://open-forms.test.maykin.opengem.nl/fouten/ValidationError/", "code": "invalid", "title": "Invalid input.", "status": 400, "detail": "", "instance": "urn:uuid:8b71e061-f293-4519-9260-794367388b93", "invalidParams": [ { "name": "data.bestandsupload.0.originalName", "code": "invalid", "reason": "De bestandsnaam komt niet overeen met de upload." } ] }
Seems the leading white space is stripped when storing on the server
Product versie / Product version
2.8.x
Customer reference
No response
Omschrijf het probleem / Describe the bug
upload:
json in validate request:
response:
Seems the leading white space is stripped when storing on the server