Skip to main content
Topic: PHP RAD Classic 2.4.7 Uploader.php getting error on upload a image (Read 1109 times) previous topic - next topic

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:
Code: [Select]
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.
Code: [Select]
 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



Re: PHP RAD Classic 2.4.7 Uploader.php getting error on upload a image

Reply #1
I confirm the error above -> images are uploaded but not displayed
But also:
Changing upload directory not working -> images are always uploaded into /files
Using subfolder to organize upload (upload/files/subfolder) doesn't work either.
Delete files on record delete doesn't work


Thanks
Eroll

 

Re: PHP RAD Classic 2.4.7 Uploader.php getting error on upload a image

Reply #2
This is a new bug that was introduced in the new update.
New update coming up shortly.

Thanks for the support.