def _upload
      if perms_for(@current)[:write] == false
        @response[:error] = 'Access Denied'
        return
      end
      select = []
      @params[:upload].to_a.each do |io|
        name = @options[:original_filename_method].call(io)
        unless valid_name?(name)
          @response[:error] = 'Unable to create file'
          return
        end
        dst = @current + name

        dst.write(io)

        select << to_hash(dst)
      end
      @response[:select] = select unless select.empty?
      _open(@current)
    end
def _upload
      if perms_for(@current)[:write] == false
        @response[:error] = 'Access Denied'
        return
      end
      select = []
      @params[:upload].to_a.each do |io|
        name = @options[:original_filename_method].call(io)
        unless valid_name?(name)
          @response[:error] = 'Unable to create file'
          return
        end
        dst = @current + name

        dst.write(io)

        select << to_hash(dst)
      end
      @response[:select] = select unless select.empty?
      _open(@current)
    end
of rename