Answered
Hi, I have the next code to import an attachement in my document. But I need to control the maximum size of this attachement.
var myDoc = event.target;
myDoc.importDataObject("name_of_attachement");
How can I control it?
myDoc.importDataObject("name_attachement");
var objData = myDoc.getDataObject("name_attachement");
var oFile = myDoc.getDataObjectContents("name_attachement");
app.alert(objData.size);
Thanks