top.aras.vault.selectFile().then(function (fileObject)
{ // The fileObject represents an unsaved file item. You can use it like below.
var d = aras.IomInnovator.newItem("CAD", "add");
d.setProperty("item_number", "007");
d.setFileProperty("native_file", fileObject);
d.apply();
});
Unfortunately, while it is possible to get the name of the file from the fileObject, it does not seem to be possible to get the path which the user selected.
Chris
top.aras.vault.selectFile().then(function (fileObject)
{ // The fileObject represents an unsaved file item. You can use it like below.
var d = aras.IomInnovator.newItem("CAD", "add");
d.setProperty("item_number", "007");
d.setFileProperty("native_file", fileObject);
d.apply();
});
Unfortunately, while it is possible to get the name of the file from the fileObject, it does not seem to be possible to get the path which the user selected.
Chris
Copyright © 2025 Aras. All rights reserved.