I am unable to upload file in asset folder which has size more than 2mb.
I already updated php.ini file in my root directory as
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
but still no success.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I am unable to upload file in asset folder which has size more than 2mb.
I already updated php.ini file in my root directory as
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
but still no success.
Can you check if the settings you made take effect per phpinfo()?
phpinfo shows the changes
upload_max_filesize 64M 64M
post_max_size 64M 64M
even after I did /?flush=1 and /dev/build too.
Check it's not a limitation on your install either globally (set in YAML) or locally for that field (set in PHP for that instance).
https://docs.silverstripe.org/en/3.1/developer_guides/forms/field_types/uploadfield/#limit-the-maximum-file-size
http://api.silverstripe.org/3.1/class-UploadField.html
I does not found any related code in .yml file.
and it is default field in 'FILES' tab which I am using to upload PDF file
Then it should be install default, which IIRC is the ini value.
try from _config.php:
die(var_dump(Config::inst()->get('AssetAdmin', 'allowed_max_file_size')));
Thanks Pyromanik for your reply.
When I added above code in _config.php it's only display white screen with message 'NULL'.
heh. I dunno.
Try setting that I suppose (use YML as per docs).