> For the complete documentation index, see [llms.txt](https://api-docs.roundhr.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.roundhr.com/round-api/api-reference/files/upload.md).

# 파일 업로드

## 파일 업로드

<mark style="color:green;">`POST`</mark> `https://api.roundhr.com/v1/upload/file`

파일 업로드 할 수 있는 URL를 반환합니다.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Body**

<table><thead><tr><th width="129">Name</th><th width="93">Type</th><th width="149">필수</th><th width="189">Description</th><th>parameter type</th></tr></thead><tbody><tr><td>filename</td><td>string</td><td><code>required</code></td><td>첨부 파일 파일명</td><td>body</td></tr></tbody></table>

**응답 예제**

{% tabs %}
{% tab title="200" %}

```json
{
   "resource":{
      "presigned_url": "https://temp.amazonaws.com/upload/candidate/file/1/temp/1622473200/test.pdf?x-amz-acl=private",
      "file_url": "https://temp.amazonaws.com/upload/candidate/file/1/temp/1622473200/test.pdf"
   }
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
해당 API 요청 후 리턴받은 응답에서 presigned\_url 을 사용하여 업로드 해주시기 바랍니다. 지원자 직접 지원시 resume\_path 혹은 file\_upload 타입의 질문에 대한 answer 항목에는 file\_url 의 path 부분(e.g. /upload/candidate/file/1/temp/1622473200/test.pdf) 를 입력해 주시기 바랍니다.
{% endhint %}
