> For the complete documentation index, see [llms.txt](https://docs.podigee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podigee.com/help-center/ai-agents/my-media-upload-failed-or-expired.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# My media upload failed or expired

Inspect an upload, get a new upload address, resume valid work, or start a safe replacement.

Inspect the upload session before you retry. A signed upload address can expire while the upload session remains valid.

## Check the upload

1. Keep the original `upload_id`.
2. Call `get_upload` with that ID.
3. Check the upload state, expiry, expected byte size, content type, and completed parts.
4. Use the new address in `next_part` when only the signed address expired.
5. Send only the part that is missing.
6. Call `publish_episode` with the upload ID. Podigee checks the file and closes the upload.

## Start a replacement only when needed

Create a new session when the session expired or the file changed. Use a new idempotency key for a different file. Podigee removes an unused session after 24 hours.

## Expected result

The file is in Podigee and the episode has the recording.

## If the upload still fails

Check the account upload limits, file size, supported content type, part numbers, and the byte count sent. Send Podigee Support the upload ID, file name without a private path, declared byte size, content type, time, and sanitized error. Do not send the media file unless Support asks for it through an approved channel.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.podigee.com/help-center/ai-agents/my-media-upload-failed-or-expired.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
