diff options
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/File.php b/app/Model/File.php index fe417d48..cb1e4792 100644 --- a/app/Model/File.php +++ b/app/Model/File.php @@ -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, |