public function getPath() { $path = storage_path() . '/plupload'; if (!is_dir($path)) { mkdir($path, 0777, true); } return $path; }