Hi,
On onpremise vault you can download file like this:
Set oFile = oHistory(1).Files.Item(1) szTempPath = "C:\Temp\" + oFile.GetNameForFileSystem()
What is the equivalent for Cloud?
Cheers
Petteri
Hi,
On onpremise vault you can download file like this:
Set oFile = oHistory(1).Files.Item(1) szTempPath = "C:\Temp\" + oFile.GetNameForFileSystem()
What is the equivalent for Cloud?
Cheers
Petteri
Did you miss some code there? That doesn't download a file.
From an API perspective it should not matter whether the server is inside or outside of your network. The client/server API modes affect it, but both of those can be used in both on-premises and cloud scenarios.
In addition to Craig’s comments, please note that the file system in M-Files Cloud is transient and intended solely for short-lived temporary files. When working with the Vault Application Framework, the SysUtils helper class can be used to manage these temporary files.
Further details on these points are available in the cloud checklist on the Developer Portal.
There are some additional helper classes in the COM API Extensions library (which is also included if you use the VAF Extensions): COMAPI.Extensions.Community/MFilesAPI.Extensions/Files/Downloading/FileDownloadLocation.cs at master · M-Files/COMAPI.Extensions.Community
© 2025 M-Files, All Rights Reserved.