Jump to:

7938 Posts in 1540 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Can't import files

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 954 Views
  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    Can't import files Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Can't import files Link to this post

    The import function respects your setAllowedFileTypes() list, so anything that isn't in there will be greyed out.

  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    Re: Can't import files Link to this post

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Can't import files Link to this post

    Ahh.. thanks. I should remove the case sensitivity. I did for uploads, but I guess imports got overlooked.

    954 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.