Skip to content
Snippets Groups Projects
Commit 60f32af7 authored by Tim Steiner's avatar Tim Steiner
Browse files

Don't store files in the database anymore, since we can only support a...

Don't store files in the database anymore, since we can only support a combined file size total of 1MB if we do it that way.
All files now stored on the filesystem.
parent 40a75c6a
Branches
Tags
No related merge requests found
......@@ -522,7 +522,7 @@ class Requests_RequestModel extends Unl_Model
foreach ($models as $model) {
$file = $model['model']->_data['files'][$model['fileId']];
$file['hash'] = hash('whirlpool', $file['data']);
if (strlen($file['data']) > 1024 * 1024) {
if (strlen($file['data']) >= 0) {
self::_saveFileToDisk($file['data']);
$file['data'] = "''";
} else {
......@@ -535,6 +535,7 @@ class Requests_RequestModel extends Unl_Model
. $db->quoteInto('?)' , $file['hash']);
}
$sql .= implode(', ', $sqlParts);
$db->query($sql);
$sql = 'UPDATE creqFiles AS a, '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment