Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug: WebApplication.SendStream remove .txt extension
#1
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)
Reply
#2
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)