I can not allow upload of certain files as executables(.exe and .msi) in m-files?
Thanks for help !
The M-Files Community will be updated on Tuesday, April 2, 2024 at 10:00 AM EST / 2:00 PM GMT and the update is expected to last for several hours. The site will be unavailable during this time.
Technically you could write an event handler (BeforeCreateNewObjectFinalize) to get and check the extension of the files being uploaded, and throw an exception error where needed. Although in practice I'm not sure how much of an overhead would this be for the vault in terms of performance. This needs to be tested as it needs to run for every single document creation in the vault.
If you're interested, here you can find the relevant M-Files API method that can be used for that purpose:
https://www.m-files.com/api/documentation/MFilesAPI~VaultObjectFileOperations.html
https://www.m-files.com/api/documentation/MFilesAPI~VaultObjectFileOperations~GetFiles.html
Technically you could write an event handler (BeforeCreateNewObjectFinalize) to get and check the extension of the files being uploaded, and throw an exception error where needed. Although in practice I'm not sure how much of an overhead would this be for the vault in terms of performance. This needs to be tested as it needs to run for every single document creation in the vault.
If you're interested, here you can find the relevant M-Files API method that can be used for that purpose:
https://www.m-files.com/api/documentation/MFilesAPI~VaultObjectFileOperations.html
https://www.m-files.com/api/documentation/MFilesAPI~VaultObjectFileOperations~GetFiles.html