I have a form with some strange behavior with attachments.
The form is quite easy: a home screen where a user can upload attachments and a viewerscreen where the user can view the uploaded pdf-documents in a gallery. To switch the view the user has to push on a button where a clearcollect will be done with the attachments that are provided and the navigation to the viewerscreen will be done. On that view there is a close button which navigates back to the home screen.
I've tested a bit with this and got following results:
Scenario 1:
- user uploads 2 pdf-documents
- user clicks on submit --> 2 documents are stored as attachment in the sharepointlist
Scenario 2:
- user uploads 2 pdf-documents
- user clicks on "view pdf" --> 2 documents are stored in the gallery and viewable with the pdf-viewer
- user clicks on close
- user clicks on submit --> 2 documents are stored as attachment in the sharepointlist
Scenario 3:
- user uploads 2 pdf-documents
- user clicks on "view pdf" --> 2 documents are stored in the gallery and viewable with the pdf-viewer
- user clicks on close
- user clicks on "view pdf" -->2 documents are stored in the gallery but not viewable in the pdf-viewer
- user clicks on close
- user clicks on submit -->no attachments are stored in the SharePoint-list
Does anyone have an idea what could be causing this and how this can be solved?