Skip to main content
Google Workspace
  • Google Workspace
Home Google Chat All products
  • Google Workspace apps
  • Admin console
  • Cloud Search
  • Gmail
  • Google Calendar
  • Google Chat
  • Google Classroom
  • Google Docs
  • Google Drive
  •  
  • Google Forms
  • Google Keep
  • Google Meet
  • Google Sheets
  • Google Sites
  • Google Slides
  • Google Tasks
  • Google Vault
  • Extend, automate & share
  • Add-ons
  • Apps Script
  • Chat apps
  • Drive apps
  • Marketplace
Resources
  • Tools
  • Admin console
  • Apps Script dashboard
  • Google Cloud console
  • APIs Explorer
  • Card Builder
  • Training & support
  • How to get started
  • Codelabs
  • Developer support
  • Community
  • Developer community
  • Discord server
  • Developer forums
  • YouTube
  • X (Twitter)
  • GitHub (googleworkspace)
  • Updates
  • Release notes
  • Developer Previews
  • Newsletter
  • Blog
/
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
  • Google Chat
Overview Guides Reference MCP server Samples Support Card builder
Google Workspace
  • Google Workspace
  • Home
  • Google Chat
    • Overview
    • Guides
    • Reference
    • MCP server
    • Samples
    • Support
    • Card builder
  • All products
    • More
  • Resources
    • More
  • Overview
  • RPC reference
    • Overview
    • apps.extensions.markup
    • google.apps.card.v1
    • google.chat.logging.v1
    • google.chat.v1
    • google.rpc
    • google.type
  • REST reference
    • Overview
    • REST Resources
    • customEmojis
      • Overview
      • create
      • delete
      • get
      • list
    • media
      • Overview
      • download
      • upload
    • spaces
      • Overview
      • completeImport
      • create
      • delete
      • findDirectMessage
      • findGroupChats
      • get
      • list
      • patch
      • search
      • setup
    • spaces.members
      • Overview
      • create
      • delete
      • get
      • list
      • patch
    • spaces.messagePins
      • Overview
      • create
      • delete
      • list
    • spaces.messages
      • Overview
        • Messages
        • Cards v1
        • Cards v2
      • create
      • delete
      • get
      • list
      • patch
      • replaceCards
      • search
      • update
    • spaces.messages.attachments
      • Overview
      • get
    • spaces.messages.reactions
      • Overview
      • create
      • delete
      • list
    • spaces.spaceEvents
      • Overview
      • get
      • list
    • spaces.streamMessages
      • Overview
      • appendStreamMessageContent
      • commit
      • create
      • delete
      • patch
    • users.availability
      • Overview
      • get
      • markAsActive
      • markAsAway
      • markAsDoNotDisturb
      • patch
    • users.sections
      • Overview
      • create
      • delete
      • list
      • patch
      • position
    • users.sections.items
      • Overview
      • list
      • move
    • users.spaces
      • Overview
      • getSpaceReadState
      • updateSpaceReadState
    • users.spaces.spaceNotificationSetting
      • Overview
      • get
      • patch
    • users.spaces.threads
      • Overview
      • getThreadReadState
    • Types
    • AccessoryWidget
    • Action
    • AppCommandType
    • Button
    • ButtonList
    • Card
    • CardWithId
    • ChatAppLogEntry
    • Citation
    • CitedSource
    • Color
    • DialogEventType
    • DriveDataRef
    • Emoji
    • Event
    • EventType
    • HostApp
    • Icon
    • ImageType
    • MarkupSyntax
    • OnClick
    • SectionItem
    • SelectionItem
    • Step
    • User
  • Limits and quotas
  • Google Workspace apps
  • Admin console
  • Cloud Search
  • Gmail
  • Google Calendar
  • Google Chat
  • Google Classroom
  • Google Docs
  • Google Drive
  •  
  • Google Forms
  • Google Keep
  • Google Meet
  • Google Sheets
  • Google Sites
  • Google Slides
  • Google Tasks
  • Google Vault
  • Extend, automate & share
  • Add-ons
  • Apps Script
  • Chat apps
  • Drive apps
  • Marketplace
  • Tools
  • Admin console
  • Apps Script dashboard
  • Google Cloud console
  • APIs Explorer
  • Card Builder
  • Training & support
  • How to get started
  • Codelabs
  • Developer support
  • Community
  • Developer community
  • Discord server
  • Developer forums
  • YouTube
  • X (Twitter)
  • GitHub (googleworkspace)
  • Updates
  • Release notes
  • Developer Previews
  • Newsletter
  • Blog
  • Home
  • Google Workspace
  • Google Chat
  • Reference

REST Resource: media Stay organized with collections Save and categorize content based on your preferences.

  • Resource
  • Methods

Resource

A file in Google Chat. For example, a file attached to a message.

Methods

download

Downloads media.

upload

Uploads an attachment.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-11-22 UTC.

  • 博客 博客
    阅读 Google Workspace 开发者博客
  • 代码示例 代码示例
    探索我们的示例应用或复制这些应用来构建您自己的应用
  • Codelab Codelab
    体验引导式动手编码体验
  • 视频 视频
    订阅我们的 YouTube 频道
  • 面向开发者的 Google Workspace

    • 平台概览
    • 开发者产品
    • 版本说明
    • 开发者预览版
    • 开发者支持
    • 服务条款
  • 工具

    • 管理控制台
    • Apps 脚本信息中心
    • Google Cloud 控制台
    • API Explorer
    • 卡片生成器
  • 社区与交流

    • 开发者社区
    • Discord
    • 开发者论坛
    • 博客
    • 简报
    • X (Twitter)
    • YouTube
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms
  • Privacy
  • ICP证合字B2-20070004号
  • Manage cookies
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어