Hello,
I have the following code to send the file to user.
File::SendFileToUser(TmpFile.getStream(), #fileName);
It shows on the file property it's blocked as the screen shot below and the user need to unblock the file so it's needed a user action how I can unblock the file before sending it to the user so the user doesn't need to unlock it manually.
Hi Yusefsuli,
The blocking of files is not managed by coding, This is done by the Attachment Manager in Windows when files are being downloaded. There is nothing you can do from x++ here.
You can learn more on e.g. this blog: How to Stop Windows 10 From Blocking Your Downloaded Files (makeuseof.com)
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156