cc-1799 Human Filesystem

storage dir should be created first so then it's realpath can be inserted into the database.
This commit is contained in:
Naomi Aro 2011-06-23 17:51:38 +02:00
parent 7876552b38
commit e725e4fbe4
3 changed files with 8 additions and 10 deletions

View file

@ -25,7 +25,7 @@ class PluploadController extends Zend_Controller_Action
public function uploadAction()
{
$upload_dir = ini_get("upload_tmp_dir") . DIRECTORY_SEPARATOR . "plupload";
$res = StoredFile::uploadFile($upload_dir);
StoredFile::uploadFile($upload_dir);
die('{"jsonrpc" : "2.0"}');
}