mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
Merge pull request #745 from creative-commoners/pulls/5.0/file-field-max-size
FIX Correctly return the max file size in MB
This commit is contained in:
commit
e0c4dfd6c6
@ -159,6 +159,6 @@ class EditableFileField extends EditableFormField
|
||||
|
||||
public function getPHPMaxFileSizeMB()
|
||||
{
|
||||
return round(static::get_php_max_file_size() / 1024.0, 1);
|
||||
return round(static::get_php_max_file_size() / 1024 / 1024, 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user