Attach & analyze files in Gemini Apps

You can attach documents, spreadsheets, notebooks, photos, videos, and more to Gemini Apps to get answers, summaries, and insights about your content.

What you need

To use this feature, you must be signed in to Gemini Apps. Learn how to sign in to Gemini Apps.

Tip: To get higher limits for this feature, like the ability to attach more files or ask Gemini Apps to reference attached files in more chats, you can upgrade to a Google AI plan. Learn more about limits and how to upgrade.

Attach files & code

In the Gemini web app

  1. On your computer, go to gemini.google.com.
  2. In the text box at the bottom, enter your question or prompt.
  3. Click Add files .
    1. To attach a supported file from your device: click Upload Files .
    2. To add a code folder: click More Uploads and then Import Code and then Upload folder.
    3. To add a GitHub repository: More Uploads and then Import Code and enter the GitHub repository or branch URL. Learn more about adding GitHub repositories.
    4. To add a supported file from your Google Drive: click Add from Drive .
      1. To add files from your Drive, you need to have History on and connect Google Workspace to Gemini Apps. If it’s not connected, you'll get the option to connect it. Learn about your Gemini Apps and Google Workspace data.
    5. To add a notebook: click More Uploads and then Notebooks Notebook.
  4. Click Submit .

Tips:

  • You can add up to 10 (subject to availability) of any kind of supported file in the same prompt, such as documents, images, or videos.
  • If you get an error that Gemini failed to analyze your file correctly, re-attach it.
In Gemini in Chrome
  1. Open Chrome and navigate to a page you want to analyze or summarize.
  2. At the top of your browser, click Gemini in Chrome .
  3. At the bottom of the text box, enter your question or prompt.
  4. Click Add files .
    • To upload a supported file from your device: click Files .
    • You can click, drag, and drop images from a web page. 
    • You can copy and paste images from a webpage.
  5. Click Submit .

File types & attachment limits

  • Gemini Apps support most file types.
  • Up to 10 files (subject to availability) can be attacheded in the same prompt. When uploading a folder, each file inside will count towards this limit.
  • Each video can be up to 2 GB. All other supported file types can be up to 100 MB.
  • Total video length can be up to 5 minutes. Upgrade to Google AI Pro or Google AI Ultra to extend total attachment length to 1 hour.
  • Total audio length can be up to 10 minutes. Upgrade to Google AI Pro or Google AI Ultra to extend total attachment length to 3 hours.
  • One code folder, or one GitHub repository, with up to 5,000 files and a maximum size of 100 MB, can be added to a chat. Learn more about adding GitHub repositories.
  • ZIP files:
    • Can contain up to 10 files (subject to availability). 
    • Can be up to 100 MB.
    • Can’t include video or audio files.

Create a chart based on your data

You can ask the Gemini web app to create a chart based on your attacheded spreadsheet(s), zoom in to explore the chart, and customize the chart for your needs.

Customize a chart

  1. Below the chart, tap Edit . 
  2. Choose how you want the chart to change. For example, you can edit  things like the chart type and labels. 
  3. Tap Update.

File upload error messages

"Delete data to upload file"

Gemini Apps have a storage limit for data saved from previous Gemini history, including your chats and any files you’ve attached to Gemini Apps. This limit is independent from your Google Drive or Google Workspace storage limit. If you reach your storage limit in Gemini Apps, you'll get this error message and you won’t be able to attach files until you clear some storage space.

How to clear storage space in Gemini Apps

If you have a personal Google Account

Important: Chats with attached files such as videos, photos, or files from Google Drive or Gemini Notebook take up more storage space in Gemini Apps.

To delete your Gemini history to clear storage space:

  1. Go to gemini.google.com.
  2. Click or tap Settings and then History .
  3. Choose the Gemini history your want to delete.

Tip: It may take several minutes for deleted Gemini history to clear storage space. If you get the same error message, try waiting before you attach a new file. If you still get the error message, try deleting additional Gemini history.

If you have a Workspace account through work, school, or another organization

Only a Workspace administrator can delete Gemini history for a work or school account. Learn more about Gemini history for work and school users.

Contact your administrator to delete Gemini history to free up space. Learn how to find your administrator.

“You’ve reached your limit for chats with files”

There are rolling limits for how much you can attach and analyze files in a period of time. After some time, the limit will reset, and you will be able to attachand analyze files again.

If you would like to attach and analyze more files, try again later or upgrade to a Google AI plan for higher usage limits.
“Your uploads may be too large for the best results”

If you try to attach a file that is too large, Gemini may provide a response that misses connections or details throughout the content. This is most relevant for prompts that require attention to many details scattered throughout large file(s).

For better results, upload smaller files with less content, or upgrade to Google AI Pro or Google AI Ultra for a larger 1 million token context window.

What does it mean when my prompt exceeds the context window?

If you’re using Gemini Apps with a work or school Google Account, you might get a message that you’ve exceeded the context window for attaching and analyzing files.

What is a context window?

When you attach files to Gemini Apps, it needs to "read" the content to provide useful insights or answers. The context window is like the reading capacity. It determines how much content can be understood together at one time.

What does it mean when my prompt exceeds the context window?

A larger context window allows Gemini to read and comprehend more. For example, with a 1M token context window, Gemini can understand up to 1,500 pages of text or 30,000 lines of code.

If you exceed the context window, this could lead to responses that don’t take into account all the content provided or miss connections or details throughout the content. This is most relevant for prompts that require attention to many details scattered throughout large files.

Related resources

Search
Clear search
Close search
Main menu
4169803145180683867
true
Search Help Center
false
true
true
true
true
true
5295044
false
false
false
false
false