文件夹结构如下:
plugin-> upload-> PHP->文件
列表 - >
'script_url' => $this->getFullUrl().'/'.basename(__FILE__),
//'upload_dir' => dirname(__FILE__).'/files/',
//'upload_url' => $this->getFullUrl().'/files/',
'upload_dir' => dirname(__FILE__).'/'.$_SESSION['username'].'/',
'upload_url' => $this->getFullUrl().'/'.$_SESSION['username'].'/',
如何将此文件更改为列出文件夹?
答案 0 :(得分:1)
然后将'upload_dir'设为:dirname(__FILE__).'/../../list/'.$_SESSION['username']