Oct 11, 2019 04:23 PM|PatriceSc|LINK
does not impact my file download
What I'm trying to tell is that if an exception happens after you sent the content disposition header, you end up in sending this exception message to the browser rather than the actual file content and as a result it seems the file is "corrupted".
This is why I suggested to open the downloaded file with notepad so that you can look at its content.
If not that at least this door is now closed and you can go to plan B.
If this is that, you'll know for sure which problem happens and it should be then much easier to fix your issue (even if moving the file really points at a problem in using the network share likely because of a permission problem).