The idea is never to give a Upload File to a view. That must
always work with a File Presenter providing overwrite methods
and specific views/partials.
ActionItem2373
class FilePresenter::Video < FilePresenter
def initialize(f)
@file = f
end
def self.accepts?(f)
return nil if f.content_type.nil?
( f.content_type[0..4] == 'video' ) ? 10 : nil
end
end