Forum Discussion

MayurLankeshwar's avatar
6 years ago

How to access file inside C# server method without uploading it to a vault.

I am struggling since few days. Is it possible to send file path to C# server method from external html-javascript client  without uploading a file to Vault? I want to perform some calculations based on file and if everything is okey then only I want file to be uploaded to Vault on another button.

1 Reply

  • Pre-validating a file is possible when you separate the client file upload from the actual upload to the Innovator file vault. When the file comes from a client, you should not need a C# Method.

    Maybe the code samples in this discussion already help to solve your task:

    community.aras.com/.../how-to-add-restrictions-to-aras-vault-selectfile-file-picker

    You can do various checks before the actual upload, e.g. check file size, read file content, etc.