# File lib/http-access2/http.rb, line 462
    def create_query_multipart_str(query, boundary)
      if multiparam_query?(query)
        query.collect { |attr, value|
          value ||= ''
          if value.is_a? File
            params = {
              'filename' => value.path,
              # Creation time is not available from File::Stat
              # 'creation-date' => value.ctime.rfc822,
              'modification-date' => value.mtime.rfc822,
              'read-date' => value.atime.rfc822,
            }
            param_str = params.to_a.collect { |k, v|
              "#{k}=\"#{v}\""
            }.join("; ")
            "--#{boundary}\n" +
              %{Content-Disposition: form-data; name="#{attr.to_s}"; #{param_str}\n} +
              "Content-Type: #{mime_type(value.path)}\n\n#{value.read}\n"
          else
            "--#{boundary}\n" +
              %{Content-Disposition: form-data; name="#{attr.to_s}"\n} +
              "\n#{value.to_s}\n"
          end
        }.join('') + "--#{boundary}--\n"
      else
        query.to_s
      end
    end