Leo Chan
Leo Chan

Reputation: 4427

How can i change the path to a specific folder

the folder structure is like this:

plugin->upload->php->files

list->

'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'].'/',

How can i change this file to list folder??

Upvotes: 0

Views: 109

Answers (1)

dan-lee
dan-lee

Reputation: 14492

Then make 'upload_dir' to: dirname(__FILE__).'/../../list/'.$_SESSION['username']

Upvotes: 1

Related Questions