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.
Thank you for your reply.
The file path is as follows.
string filepath1 = @ "C:\\Aras\\filename1.txt";
string filepath2 = @ "C:\\Aras\\filename2.txt";
And these files certainly exist.
Thank you for your reply.
The file path is as follows.
string filepath1 = @ "C:\\Aras\\filename1.txt";
string filepath2 = @ "C:\\Aras\\filename2.txt";
And these files certainly exist.