module Sinatra::Backstage::StoredFile::Helper
Public Instance Methods
get_attachment_attrs(attachment)
click to toggle source
# File lib/sinatra/backstage/stored_file/stored_file_helper.rb, line 6 def get_attachment_attrs(attachment) { :filename => attachment[:filename], :filesize => File.size(attachment[:tempfile].path) } end