> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skybridge.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatGPT Files

> Pick a file from the filesystem or the ChatGPT library and zip it

Handles ChatGPT files end to end: takes a file attachment, compresses it server-side, stores the archive in Cloudflare R2, and hands back a presigned download link. Relies on the `window.openai` file APIs, so it runs in ChatGPT.

Zip this file for me.

ChatGPT Files

![ChatGPT Files](https://docs.skybridge.tech/images/showcase-chatgpt-files.png)

> [card] [View source](https://github.com/alpic-ai/skybridge/tree/main/examples/chatgpt-files)
>
> Browse the example code.

## Skybridge APIs used

* [`FileRef`](https://docs.skybridge.tech/api-reference/file-ref)
* [`useCallTool`](https://docs.skybridge.tech/api-reference/use-call-tool)
* [`useFiles`](https://docs.skybridge.tech/api-reference/use-files)
* [`useViewport`](https://docs.skybridge.tech/api-reference/use-viewport)
* [`useOpenExternal`](https://docs.skybridge.tech/api-reference/use-open-external)
* [`useToolInfo`](https://docs.skybridge.tech/api-reference/use-tool-info)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.