mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Enforce php.ini limits when not using CKEditor + jQuery File Upload
This commit is contained in:
parent
73d4ea842f
commit
d981b649c1
3 changed files with 18 additions and 1 deletions
|
|
@ -326,6 +326,13 @@ class editorModel extends editor
|
|||
$file_config->allowed_filesize = min(FileHandler::returnBytes(ini_get('upload_max_filesize')), FileHandler::returnBytes(ini_get('post_max_size')));
|
||||
$file_config->allowed_chunk_size = 0;
|
||||
}
|
||||
|
||||
// Do not allow chunked uploads in XpressEditor.
|
||||
if (starts_with($option->skin, 'xpresseditor'))
|
||||
{
|
||||
$file_config->allowed_filesize = min(FileHandler::returnBytes(ini_get('upload_max_filesize')), FileHandler::returnBytes(ini_get('post_max_size')));
|
||||
$file_config->allowed_chunk_size = 0;
|
||||
}
|
||||
|
||||
Context::set('file_config',$file_config);
|
||||
// Configure upload status such as file size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue