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
  • Updates
  • Blog
  • Developer Previews
  • Newsletter
  • X (Twitter)
  • YouTube
/
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
Sign in
  • Google Chat
Overview Guides Reference Samples Support Card builder
Google Workspace
  • Google Workspace
  • Home
  • Google Chat
    • Overview
    • Guides
    • Reference
    • Samples
    • Support
    • Card builder
  • All products
    • More
  • Resources
    • More
  • Overview
  • RPC reference
    • Overview
    • 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
      • get
      • list
      • patch
      • search
      • setup
    • spaces.members
      • Overview
      • create
      • delete
      • get
      • list
      • patch
    • spaces.messages
      • Overview
        • Messages
        • Cards v1
        • Cards v2
      • create
      • delete
      • get
      • list
      • patch
      • update
    • spaces.messages.attachments
      • Overview
      • get
    • spaces.messages.reactions
      • Overview
      • create
      • delete
      • list
    • spaces.spaceEvents
      • Overview
      • get
      • list
    • users.spaces
      • Overview
      • getSpaceReadState
      • updateSpaceReadState
    • users.spaces.spaceNotificationSetting
      • Overview
      • get
      • patch
    • users.spaces.threads
      • Overview
      • getThreadReadState
    • Types
    • AppCommandType
    • ChatAppLogEntry
    • DialogEventType
    • DriveDataRef
    • Emoji
    • Event
    • EventType
    • HostApp
    • 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
  • Updates
  • Blog
  • Developer Previews
  • Newsletter
  • X (Twitter)
  • YouTube
  • 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.

  • Blog Blog
    Read the Google Workspace Developers blog
  • X (Twitter) X (Twitter)
    Follow @workspacedevs on X (Twitter)
  • Code Samples Code Samples
    Explore our sample apps or copy them to build your own
  • Codelabs Codelabs
    Try a guided, hands-on coding experience
  • Videos Videos
    Subscribe to our YouTube channel
  • Google Workspace for Developers

    • Platform overview
    • Developer products
    • Developer support
    • Terms of Service
  • Tools

    • Admin console
    • Apps Script Dashboard
    • Google Cloud console
    • APIs Explorer
  • Connect

    • Blog
    • Newsletter
    • X (Twitter)
    • YouTube
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • Google AI
  • All products
  • Terms
  • Privacy
  • Manage cookies
  • Sign up for the Google for Developers newsletter Subscribe
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어