Uploading a local file to Innovator using the Batch Loader
I'm having issues uploading a local file to an instance of Innovator using the Batch Loader. I have the following XML: <Item type="Document File" action="add"> <related_id> <Item type="File" action="add"> <actual_filename>C:\some\file\path\@1</actual_filename> <filename>@1</filename> </Item> This currently fails. I had to search to find out the <actual_filename> tag is used for the fully qualified path of the file, yet it is not present in the File Item when inspecting it through Innovator Client. Any help with this would be appreciated.11KViews0likes8CommentsVault Replication Error (Failed to download file from the source vault: Vault Server: Internal Server Error)
Hi, I installed a 'NEW' Vault in addition to default Vault by following installation guide and Replication Guide, Created a rule for default Vault to copy onDemand to 'New' Vault and set up a user for it, when requesting files i can see the Replication Transaction is created but it always gives error (Failed to download file from the source vault: Vault Server: Internal Server Error) and sometime (Failed to download file from the source vault: Vault Server: Internal Server Error , file C:/Aras/Vault/.../../xxx.ipt is being used by another process) i tried different thing by changing e.g. Application pool user etc but it did not help, I trying this with ARAS 11 SP 14 please suggest what should i do?10KViews0likes4CommentsHow to fetch file object of vaulted File with JS so we can later read the file content?
Hi community, does anybody a way to read the file content of existing Files in the Vault (mainly xml data) with Javascript? For example we have an CAD item with an xml file in the property native_file. With an button click I want to read the filecontent and stream the result to another system. (I know that the xml files are not the typical content of the CAD ItemType, I just abuse this ItemType for my current test :-) ). I know that we can use fetchFileProperty to download files to the client. In addition there seems to be an additional 3rd parameter where we can define if we really want to download the file (Standard Mode), or only get the File item (Dry Mode). But none of these two modes will return the native FileObject needed for the FileReader. I tried the following code from a regular Form button: var fileObject = document.thisItem.fetchFileProperty("native_file", "C:\\Temp", 1); This variant will return the file item. Is there any way to get the file object itself with JS? Another possible solution would be to use C# for this task. This way we could download the file temporary to the server and then ready the file content there. But maybe it´s possible to avoid this additional download? Thanks for any help!7.4KViews0likes4CommentsJavascript check if object is a file or a folder
Hi! Is there a possibility to check if the object to be uploaded (for example in the Document item's File tab/upload field) is a file or a folder? We would like to prevent folders from ever being uploaded in Files (like a javascript check when you drag&drop a file/folder), and so far we can't see an attribute in database or anywhere else which does the check. Thanks.6.6KViews0likes2CommentsCall attachPhysicalFile in javascript from an itemtype
Hi, I have an ItemType "COCO_STUDY" with a relation "COCO_STUDY_FILE" pointing to a "File". On the form of this ItemType, I have a html/javascript widget to import a CSV file. The selection of the file is done with <input type="file">. I would like to implement an option (here: "Add imported file in documents"), to copy the selected and imported document into ARAS (as a File) and pointed by the current "COCO_STUDY" through a "COCO_STUDY_FILE". I understood that I need to use attachPhysicalFile but how ? If I well understood, for security reason, the browser doesn't fullpath of the selected file. So, I don't know how to pass it to attachPhysicalFile. I tried to hardcode the filename for a test but it doesn't work. I did this javascript code if(add_imported_file) { // Add imported file in ARAS let inn = top.aras.newIOMInnovator(); let link_study_file = inn.newItem("COCO_STUDY_FILE", "add"); let fileAras = inn.newItem("File", "add"); fileAras.setProperty("filename",fileInput.files[0].name); fileAras.setProperty("comments", "Imported"); //URL.createObjectURL(fileInput.files[0]) fileAras.attachPhysicalFile("C:\\Users\\to81591\\Documents\\Development\\cawb\\sample_csv_files\\CAD2BOM v0.1_UPDATED.csv") link_study_file.setRelatedItem(fileAras); document.thisItem.addRelationship(link_study_file); } So, in javascript, how to create a "File" from a file selected from an <input type="file"> ? Regards.Solved5.3KViews0likes3CommentsFile checkout (using fetchFileProperty & checkout) not working in custom user with custom identity. how to checkout file in for user not having administrator permissions ?
I'm trying to checkout a file using item method fetchFileProperty in custom user with custom identity which do not have administrator permission. Aras gets hang after this method call, also tried with file.checkout methods behaviour is same. With admin user file checkout with same code is working but not for different user. What is the issue ? is this due to permissions ? what permissions needed to checkout file?5KViews0likes2Comments