Unable to query post mime type from an AJAX post on IE 10 &11
Issue #297259 • Assigned to Rajat J.
Steps to reproduce
URL:
Repro Steps:
http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/ajaxfileupload/ajaxfileupload.aspx
Code from REG:114020611163238
void CBridgeClass::RetrievePostDataMimeType(IInternetBindInfo* pOIBindInfo)
{
// Retrieve MIME type of the post data.
LPOLESTR pszMIMEType = 0;
ULONG dwSize = 0;
HRESULT hr = pOIBindInfo->GetBindString(BINDSTRING_POST_DATA_MIME, &pszMIMEType, 1, &dwSize);
if (SUCCEEDED(hr))
{
MessageBox(NULL, pszMIMEType, NULL, NULL);
}
else
{
MessageBox(NULL, (LPCWSTR)L"fail", NULL, NULL);
}
Expected Results:
The expected behavior is that I would be able to determine the mime type for any type of post.
You need to sign in to your Microsoft account to add a comment.
Sign in