This project provides a simple HTML form and a JavaScript file to demonstrate how to upload files to the Aras vault server via the Aras RESTful API.
Uploading a file to the Aras vault server via the RESTful API requires three basic steps:
To see these steps in action, check out submitForm()
in the my-upload.js file in this project.
Visit the Aras Labs blog for more detailed information on the Aras RESTful API.
Release | Notes |
---|---|
v2.0.0 | This release deprecates support for basic authentication and an OAuth token request specific to Aras 11 SP15. These are not supported and/or recommended for Aras 12.0. |
v1.0.0 | First release. Tested on Aras 11 SP15 and 12.0. Includes sample code for both OAuth token authentication and basic authentication. |
Project | Aras |
---|---|
v2.0.0 | 12.0 |
v1.0.0 | 11.0 SP15, 12.0 |
Always back up your code tree and database before applying an import package or code tree patch!
Note: This project does not contain any packages or code tree files for modifying your Aras Innovator installation. It's a standalone client for uploading files to the Aras vault server.
rest-upload-example\Code
folder on the server.http://{server name}/{alias}
to confirm the sample application is configured correctly.After the upload succeeds, you'll see a browser alert with the name and id of the File Item. You can confirm that the upload worked by checking Administration > File Handling > Files in your database, or checking that the physical file exists in the vault folder on the server.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
For more information on contributing to this project, another Aras Labs project, or any Aras Community project, shoot us an email at araslabs@aras.com.
Created by Eli Donahue for Aras Labs.
Aras Labs projects are published to Github under the MIT license. See the LICENSE file for license rights and limitations.)