public function importUploadAction()
{
$data = file_get_contents($_FILES["Filedata"]["tmp_name"]);
$data = Tool\Text::convertToUTF8($data);
$importFile = PIMCORE_SYSTEM_TEMP_DIRECTORY . "/import_" . $this->getParam("id");
File::put($importFile, $data);
$importFileOriginal = PIMCORE_SYSTEM_TEMP_DIRECTORY . "/import_" . $this->getParam("id") . "_original";
File::put($importFileOriginal, $data);
$this->_helper->json(["success" => true], false);
// set content-type to text/html, otherwise (when application/json is sent) chrome will complain in
// Ext.form.Action.Submit and mark the submission as failed
$this->getResponse()->setHeader("Content-Type", "text/html");
}