onfido-sdk-ui
onfido-sdk-ui copied to clipboard
Users can upload multiple documents of the same type by clicking back button
What was the expected behaviour?
Only the last uploaded image should be accepted and processed
What happened instead?
Several documents can be uploaded of the same type, with all of them saved and processed and reported.
Version info:
- Onfido SDK
- OS: Mac OS
- Browser: Google Chrome
- Device: Macbook pro
Steps to reproduce:
- Choose a document type (like password)
- upload an image
- click back
- upload a second image
- click back
- upload a third image
- Submit for verification
- All three documents are included in the check report
@mat-fs It is true that the user could upload the images n number of times, but when a check is created for the user, we only process the last uploaded document(s) and provide results accordingly. When viewing the check on the Dashboard, you will see all the documents uploaded by the user, but we do mention which documents were considered when processing the check. Also, when the check is created, the response we provide contains the document IDs which will be considered to process the check. I have included an example below: HTTP/1.1 201 Created Content-Type: application/json
{
"created_at": "2019-10-03T14:05:48Z",
"documents": [
{
"id": "<DOCUMENT_ID>"
}
]
I hope this helps.
@ramprasad-parajuli Thank for explanation. It will be taken into account by our technical team. Is it mentioned anyway in the SDK documentation? It would be nice if it was documented for reference.
@mat-fs It isn't specifically mentioned in the SDK documentation, but we will take note of this and look to improve on it so that integrators are made aware.