Atozed Forums
Bug: WebApplication.SendStream remove .txt extension - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Bug: WebApplication.SendStream remove .txt extension (/thread-5686.html)



Bug: WebApplication.SendStream remove .txt extension - RenSword - 12-26-2025

When I try to useĀ 
Code:
WebApplication.SendStream(M, True, TIWMimeTypes.GetAsString(mtTXT), 'testing.txt');
to send text file with SendStream, it remove my .txt extension, if the filename is .xml or etc, it has no issue.

To replay, can try run the sample project and press the button. testing without .txt file extension will be downloaded.

.zip   IWSendStream.zip (Size: 7.54 KB / Downloads: 0)


RE: Bug: WebApplication.SendStream remove .txt extension - RenSword - 01-16-2026

(12-26-2025, 07:13 AM)RenSword Wrote: When I try to useĀ 
Code:
WebApplication.SendStream(M, True, TIWMimeTypes.GetAsString(mtTXT), 'testing.txt');
to send text file with SendStream, it remove my .txt extension, if the filename is .xml or etc, it has no issue.

To replay, can try run the sample project and press the button. testing without .txt file extension will be downloaded.

Found the reason is due to IWEndsText return incorrect result with .tmp (subtext) and testing.txt