mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
check if the upload method compatible with kleeja
This commit is contained in:
@@ -54,6 +54,11 @@ $action = $config['siteurl'];
|
|||||||
$uploadingMethodClassBaseName = basename($uploadingMethodClass, '.php');
|
$uploadingMethodClassBaseName = basename($uploadingMethodClass, '.php');
|
||||||
$uploader = new $uploadingMethodClassBaseName;
|
$uploader = new $uploadingMethodClassBaseName;
|
||||||
|
|
||||||
|
if (! $uploader instanceof KleejaUploader) {
|
||||||
|
kleeja_err('Your upload Method class is not implemented our KleejaUploader Interface');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
$uploader->setAllowedFileExtensions($d_groups[$userinfo['group_id']]['exts']);
|
$uploader->setAllowedFileExtensions($d_groups[$userinfo['group_id']]['exts']);
|
||||||
$uploader->setUploadFieldsLimit($config['filesnum']);
|
$uploader->setUploadFieldsLimit($config['filesnum']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user