#475 Portal : Could not upload attachments on IE9.

SVN:trunk[4457]
This commit is contained in:
Guillaume Lajarige
2016-10-14 09:56:45 +00:00
parent 4eb0b3086d
commit f62f087bcc
2 changed files with 3 additions and 1 deletions

View File

@@ -1386,7 +1386,8 @@ class ObjectController extends AbstractController
}
}
$oResponse = $oApp->json($aData);
// Note : The Content-Type header is set to 'text/plain' in order to be IE9 compatible. Otherwise ('application/json') IE9 will download the response as a JSON file to the user computer...
$oResponse = $oApp->json($aData, 200, array('Content-Type' => 'text/plain'));
break;
case 'download':