mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX Correctly return the max file size in MB
This commit is contained in:
parent
53f7706f1a
commit
92a2229249
@ -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…
Reference in New Issue
Block a user