> 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/documentation/start-here/ai-agents/transfer-media-encode-and-publish/resume-an-interrupted-media-upload.md).

# Resume an interrupted media upload

Inspect an existing upload session and transfer only the missing file parts.

Resume the existing upload instead of creating another session.

## Before you start

* Keep the upload ID and original local file.
* Reconnect to the same Podigee user and account.
* Confirm that the file still has the same size and content.

## Resume the upload

1. Call `get_upload` with the upload ID.
2. Confirm that the byte size and content type match the local file.
3. Continue only when the state is `pending` or `uploading`.
4. Review `completed_parts` and the expected part count.
5. Request a fresh URL for each missing part.
6. Transfer the exact bytes and headers for each missing part.
7. Call `complete_upload` after all parts are present.
8. Confirm that the state becomes `completed`.

## Expected result

Only missing parts are transferred, and the original session completes without duplicate declared bytes or active sessions.

## If the session cannot resume

* Wait when it is `initializing`, `completing`, or `aborting`.
* Use the completed upload when it is `completed`.
* Stop when it is `aborted`, `expired`, or `failed`.

Abort an eligible incomplete session when you no longer need it. Create a new session only after the old state is resolved.

## Next step

[Complete or abort an upload](/documentation/start-here/ai-agents/transfer-media-encode-and-publish/complete-or-abort-an-upload.md).


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.podigee.com/documentation/start-here/ai-agents/transfer-media-encode-and-publish/resume-an-interrupted-media-upload.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
