Zend framework zend framework使用uploadify验证数据
我对zend框架中的uploadify有一个问题 这里是上传urlZend framework zend framework使用uploadify验证数据,zend-framework,uploadify,Zend Framework,Uploadify,我对zend框架中的uploadify有一个问题 这里是上传url 'script' : '/index/upload', 在此操作中,我无法获取登录时设置的身份验证数据 $auth = Zend_Auth::getInstance(); $auth->getIdentity(); 但是,当我直接在浏览器中访问上载操作时,我可以访问身份验证数据。 结论是使用uploadify上载时,上载操作中没有获取身份验证数据。以下是上载代码$(“#file_upload”)。uploadif
'script' : '/index/upload',
在此操作中,我无法获取登录时设置的身份验证数据
$auth = Zend_Auth::getInstance();
$auth->getIdentity();
但是,当我直接在浏览器中访问上载操作时,我可以访问身份验证数据。
结论是使用uploadify上载时,上载操作中没有获取身份验证数据。以下是上载代码$(“#file_upload”)。uploadify({'uploader':'/public/www/js/uploader/uploadify.swf','script':'/index/upload','cancelImg':'/public/www/images/uploader/cancel.png','fileExt':'.jpg;.gif;*.png','folder':'/public/uploads','fileDesc':'Image filefilefilefilefilefilefiles','auto':true,});我想在上传时访问上传操作中的身份验证数据。并且直接意味着访问url手册这可能是已知的副本,请检查副本链接中的第二个答案。