PHP RAD Classic 2.4.7 Uploader.php getting error on upload a image
When you try to view an image that was loaded the following error is displayed:
Warning: stripos() expects parameter 1 to be string array given in ...libs\ Uploader.php in line 169
Uploader.php line 169 code:
The error disappears if I delete these lines.
if(!empty($options['extensions']) && $options['extensions'] != '*'){
if(stripos($options['extensions'], strtolower($file['extension'])) === false){
$errors[] = $this->error_messages['accept_file_types'];
}
}
What would be the best solution? Thank's in advance