This commit is contained in:
Frederic Guillot
2015-05-23 21:45:39 -04:00
3 changed files with 38 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ class File extends Base
return $this->db->table(self::TABLE)->save(array(
'task_id' => $task_id,
'name' => $name,
'name' => substr($name, 0, 255),
'path' => $path,
'is_image' => $is_image ? '1' : '0',
'size' => $size,