Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Zend framework zend framework使用uploadify验证数据_Zend Framework_Uploadify - Fatal编程技术网

Zend framework zend framework使用uploadify验证数据

Zend 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

我对zend框架中的uploadify有一个问题

这里是上传url

'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手册这可能是已知的副本,请检查副本链接中的第二个答案。