I've searched qa-wysiwyg-upload.php for the line to be modified but it does not appear in there - any thoughts?
Find:
$blobid=qa_db_blob_create(file_get_contents($file['tmp_name']), $extension, @$file['name'], $userid, $cookieid, qa_remote_ip_address());
This is the entire file:
class qa_wysiwyg_upload
{
public function match_request($request)
{
return ($request == 'wysiwyg-editor-upload');
}
public function process_request($request)
{
$message = '';
$url = '';
if (is_array($_FILES) && count($_FILES)) {
if (!qa_opt('wysiwyg_editor_upload_images'))
$message = qa_lang('users/no_permission');
require_once QA_INCLUDE_DIR.'app/upload.php';
$upload = qa_upload_file_one(
qa_opt('wysiwyg_editor_upload_max_size'),
qa_get('qa_only_image') || !qa_opt('wysiwyg_editor_upload_all'),
qa_get('qa_only_image') ? 600 : null, // max width if it's an image upload
null // no max height
);
$message = @$upload['error'];
$url = @$upload['bloburl'];
}
echo "<script>window.parent.CKEDITOR.tools.callFunction(".qa_js(qa_get('CKEditorFuncNum')).
", ".qa_js($url).", ".qa_js($message).");</script>";
return null;
}
}