Hi All,
Kindly let me know how to upload multiple files in to Adobe form using Java Script.
Right now i am using the below code for uploading the files. I tried few things and finally what happens is that whatever the file which is uploaded finally was overwritten with previously uploaded files.
i am having the requirement to display the file names in the table.
var rowIndex = this.parent.index;
var sFile = null;
event.target.importDataObject(sFile);
var oFile = null;
oFile = event.target.getDataObject(sFile);
xfa.resolveNode("MainForm.Subform.Table1.Row1["+rowIndex+"].Cell2").rawValue = oFile.path;
var pFile = event.target.getDataObjectContents(sFile);
var cFile = util.stringFromStream(pFile, "utf-8");
Kindly help us............
Thanks & Regards,
Chandran S
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script