def file_upload
      o = @options[:file] || @options[:datafile]
      tmpfile, filename = o[:tempfile], o[:filename]
      type = o[:type] || mimetype(filename)

      {:filename => filename, :tempfile => tmpfile, :type => type}
    end
def file_upload
      o = @options[:file] || @options[:datafile]
      tmpfile, filename = o[:tempfile], o[:filename]
      type = o[:type] || mimetype(filename)

      {:filename => filename, :tempfile => tmpfile, :type => type}
    end
File upload