/** * Define the internal working path, override this method to define. */ public function getTempPath() { $path = temp_path() . '/uploads'; if (!FileHelper::isDirectory($path)) { FileHelper::makeDirectory($path, 0777, true, true); } return $path; }