---
title: "Get the image store upload session by relative path."
method: GET
path: "/ImageStore/{contentPath}/$/GetUploadSession"
tags: ["ImageStore"]
---

# Get the image store upload session by relative path.

`GET /ImageStore/{contentPath}/$/GetUploadSession`

Gets the image store upload session associated with the given image store relative path. User can query the upload session at any time during uploading.

## Path parameters

- `contentPath` string, required

## Query parameters

- `api-version` '6.0', required
- `timeout` integer

## Response `200`

A successful operation will return 200 status code and the requested image store upload session information.

- UploadSession — Information about a image store upload session
  - `UploadSessions` UploadSessionInfo[] — When querying upload session by upload session ID, the result contains only one upload session. When querying upload session by image store relative path, the result might contain multiple upload sessions.
    - `StoreRelativePath` string — The remote location within image store. This path is relative to the image store root.
    - `SessionId` string, uuid — A unique ID of the upload session. A session ID can be reused only if the session was committed or removed.
    - `ModifiedDate` string, date-time — The date and time when the upload session was last modified.
    - `FileSize` string — The size in bytes of the uploading file.
    - `ExpectedRanges` UploadChunkRange[] — List of chunk ranges that image store has not received yet.
      - `StartPosition` string — The start position of the portion of the file. It's represented by the number of bytes.
      - `EndPosition` string — The end position of the portion of the file. It's represented by the number of bytes.

## Other responses

- `default` — The detailed error response.

---

[API](https://skmtc.net/azure/apis/service-fabric-client-apis.md) · [All operations](https://skmtc.net/azure/apis/service-fabric-client-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/service-fabric-client-apis/versions/6df9f2f4d542/schema)
