Truncated data and subsequent FTP operations fail on the same session in Internet Explorer 11 when you use InternetWriteFile to upload files

Applies to: Internet Explorer 11

Symptoms


Consider the following scenario:
  • You have a C++ application to send files to FTP server by using InternetWriteFile API.
  • You read the file and write the content by using InternetWriteFile API.
  • The entire file is uploaded and the file handle is closed.
In this scenario, you may find all data has not yet reached the server and the file is truncated. Additionally, the subsequent FTP operations on the same session fail.

Note This issue does not occur on Internet Explorer 8, Internet Explorer 9 and Internet Explorer 10.

Cause


After you call InternetWriteFile() API, the InternetCloseHandle() API will be called. In Internet Explorer 9 and Internet Explorer 10, InternetClosehandle() is waiting for 226 Transfer complete, then the next command works. However, in Internet Explorer 11, InternetClosehandle() does not wait for 226 Transfer complete. Therefore, the data channel may be closed before all data has reached the server. Additionally subsequent FTP commands will fail.

Resolution


Update information

To resolve this issue, install the most recent cumulative security update for Internet Explorer. To do this, go to Microsoft Update.

For technical information about the most recent cumulative security update for Internet Explorer, go to the following Microsoft website:Note This update was first included in security update 2909921.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2909921 MS14-010: Cumulative security update for Internet Explorer: February 11, 2014

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


See the terminology that Microsoft uses to describe software updates.