---
title: "Prepare file for upload to a folder"
method: GET
path: "/api/1/folders/{userFolder}/upload/id"
tags: ["Secure spaces & folders"]
deprecated: true
---

# Prepare file for upload to a folder

`GET /api/1/folders/{userFolder}/upload/id`

> **Deprecated.**

This is the second step to start uploading files to a folder. After you get the credentials for the AWS SDK, you will need to call this
API for each file to get the key where to upload the file in S3. Also, keep the `version` property is this will be required when creating the
file after the upload session.

## Query parameters

- `name` string, required — Name of the file
- `size` integer, required — File size

## Request body

- object
  - `size` integer, required
  - `name` string, required
  - `conflict_behaviour` 'replace' | 'rename' | 'fail', nullable

## Other responses

- `401`

---

[API](https://skmtc.net/convoflo/apis/convoflo-rest-api.md) · [All operations](https://skmtc.net/convoflo/apis/convoflo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/convoflo/convoflo-rest-api/versions/fed4481f0476/schema)
