I noticed that by default .odt is not an allowed file upload. Where do you change the file types allowed for upload?
We've moved the forum!
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 think something like the following might help... this means you have to intercept the field in getCMSfields and also not that these are case sensitive.... please look at sapphire\forms\FileField.php for more info....
$uploadField->setAllowedExtensions('odt');
An alternative solution would be to add this line
File::$allowed_extensions[] = 'odt';
to your mysite/_config.php.
Cheers,
Christian
Gman,
did you solve your issue?
do you have any problems linking or accessing the file once uploaded?
regards
Brendon