def add_filename_to_url(url, file_path)
      filename = File::basename(file_path)

      decorate_url = nil

      if /\/$/ =~ url
        decorate_url = url + filename
      else
        decorate_url = url + '/' + filename
      end

      return decorate_url
    end
def add_filename_to_url(url, file_path)
      filename = File::basename(file_path)

      decorate_url = nil

      if /\/$/ =~ url
        decorate_url = url + filename
      else
        decorate_url = url + '/' + filename
      end

      return decorate_url
    end
URLにファイル名を付与