Hi there
I have a problem with DOM import function - I can upload only images, not the files. When I'm trying to import files, all checkboxes are inactive (see attach).
Where could be a problem?
SS 2.3.3
latest DOM build
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.
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
Hi there
I have a problem with DOM import function - I can upload only images, not the files. When I'm trying to import files, all checkboxes are inactive (see attach).
Where could be a problem?
SS 2.3.3
latest DOM build
The import function respects your setAllowedFileTypes() list, so anything that isn't in there will be greyed out.
Thanks for your answer. Yes, it was related to "setAllowedFileTypes". It was uppercases, because that doesnt work:
$Media->setAllowedFileTypes(array('MOV', 'MPG','AVI','FLV', 'MP3'));
Changed to:
$Media->setAllowedFileTypes(array('MOV', 'MPG','AVI','FLV', 'MP3', 'mov', 'mpg','avi','flv', 'mp3'));
and now everything works perfect!
Ahh.. thanks. I should remove the case sensitivity. I did for uploads, but I guess imports got overlooked.