mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-15 20:49:41 +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');
|
||||
$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->setUploadFieldsLimit($config['filesnum']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user