public function addAssetCompatibilityAction()
{
// this is a special action for the compatibility mode upload (without flash)
$res = $this->addAsset();
// here we have to use this method and not the JSON action helper ($this->_helper->json()) because this will add
// Content-Type: application/json which fires a download window in most browsers, because this is a normal POST
// request and not XHR where the content-type doesn't matter
$this->disableViewAutoRender();
echo \Zend_Json::encode(["success" => $res["success"], "msg" => $res["success"] ? "Success" : "Error", "id" => $res["asset"] ? $res["asset"]->getId() : null, "fullpath" => $res["asset"] ? $res["asset"]->getRealFullPath() : null, "type" => $res["asset"] ? $res["asset"]->getType() : null]);
}