Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes FileRules::max_size() to use file->getSize() instead of number_formatted size #1199

Merged

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Sep 4, 2018

previously, it uses $file->getSize('kb') which got numbered format of size, which make it invalid for big file. Updated to $file->getSize()/1024, ref https://3v4l.org/7MuUB . Unit test included.

@lonnieezell lonnieezell merged commit b97dbf8 into codeigniter4:develop Sep 5, 2018
@samsonasik samsonasik deleted the file-rule-use-file-get-size branch September 9, 2018 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants