I have figured out how to upload an INfoPath attachment into a SP document library and then remove the file from the InfoPath attachment control. So I have a repeating group with 2 fields: 1 field for the file attachment and the other one for the URL.
The first problem I am having is how to verify if there is an attachment before using the code in K2 blackpoint to upload the document. I have tried different things like compare to empty string or null but the K2 process gives an error.
The second problem is if a user change for example the second file attachment then because the first file attachment is empty the K2 process will give an error. I need to allow users to change the attachments.
Also note that I need the InfoPath to be in a web browser. I have tried to integrate my InfoPath file with SmartObject but the infopath form doesn't open in the web browser with this technic.
Any help will be greatly appreciated.