Sha256: 49a6342fcb3396652439ebff9dce29c53a2089cb1a45267986c49ddd3aa58dfc
Contents?: true
Size: 507 Bytes
Versions: 50
Compression:
Stored size: 507 Bytes
Contents
module Celerity # # For fields that accept file uploads # class FileField < InputElement TAGS = [ Identifier.new('input', :type => %w[file]) ] DEFAULT_HOW = :name # # Set the file field to the given path # def set(path) assert_exists path = path.to_s @object.setValueAttribute path unless @object.getContentType @object.setContentType(Celerity::Util.content_type_for(path)) end path end end # FileField end # Celerity
Version data entries
50 entries across 50 versions & 8 rubygems