A few days ago, due to the requirements of the project, you need to upload more than one attachment in InfoPath, when I design the form with a repeating table. Thought, the customer's demand has been very easy to fix, did not expect when I was testing the time. Found that InfoPath has a maximum capacity of 5M when uploading attachments at one time
No way, I had to think of a different solution. Then the idea is to break the attachment in the InfoPath form and upload it to the Moss document library before submitting the form.
This can not solve the problem of attachment upload, but also to avoid the large size of the form of the problem, is to kill two birds with one stone
The deletion of attachments is also supported
First look at the design of the form, two repeating table, one is to upload multiple attachments, the other is to store the list of uploaded attachments
When you see that the upload attachment list already has the data, you can go to the corresponding document library to find the attachment uploaded in InfoPath, such as the icon has "new" word is the attachment in InfoPath is decomposed
Effect diagram, that's it, here's the end of the Code section
The main technical point in the Code section is the decomposition of the InfoPath attachment and the operation of the InfoPath repeating table