How to upload multiple files.

I want to upload multiple files. I created the following method, but it does not work well. Where is it wrong? ************************************************************ //Aras Innovator 11.0 SP12 //Server side , c# Method Item fileObj1 = inn.newItem("File", "add"); fileObj1.setProperty("filename", "filename1.txt"); fileObj1.attachPhysicalFile(filepath1); fileObj1 = fileObj1.apply(); Item fileObj2 = inn.newItem("File", "add"); fileObj2.setProperty("filename", "filename2.txt"); fileObj2.attachPhysicalFile(filepath2); fileObj2 = fileObj2.apply();                       // <-- Here Innovator becomes busy. ************************************************************   Thank you.
Parents Reply Children
No Data