You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is an old code and the project is an abandonned one...
I need to fix a warning (PHP 8)
Trying to access array offset on value of type int in
related to this line from validate($file = null) if($options['maxSize'] && $file['size'][0] > $options['maxSize']) $errors[] = $this->error_messages['max_file_size'];
Any clue?
The text was updated successfully, but these errors were encountered:
lenamtl
changed the title
warning
warning Trying to access array offset on value of type int in
May 27, 2022
By if($options['maxSize'] && $file['size'] > $options['maxSize']) $errors[] = $this->error_messages['max_file_size'];
*Important:
I found another error when I compared the $options['maxSize'] VS $file['size'] they use different size format so they cannot be compared
So we need to edit maxSize must be set in bytes not megabytes (because the code does not have any conversion)
You need to change the value in Javascript and in PHP.
Hi,
I know this is an old code and the project is an abandonned one...
I need to fix a warning (PHP 8)
Trying to access array offset on value of type int in
related to this line from validate($file = null)
if($options['maxSize'] && $file['size'][0] > $options['maxSize']) $errors[] = $this->error_messages['max_file_size'];
Any clue?
The text was updated successfully, but these errors were encountered: