> ## Documentation Index
> Fetch the complete documentation index at: https://developers.plane.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload file

> Upload the file using the credentials generated by the [Get upload credentials](/api-reference/issue-attachments/get-upload-credentials) endpoint.

<Warning>
  **Self-hosted instances**

  Use the upload URL returned by the [Get upload credentials](/api-reference/issue-attachments/get-upload-credentials) endpoint.
</Warning>

## Body parameters

<ParamField body="Content-Type" type="string" required>The MIME type of the file</ParamField>
<ParamField body="key" type="string" required>The target path/filename in S3</ParamField>
<ParamField body="x-amz-algorithm" type="string" required>AWS signature algorithm (AWS4-HMAC-SHA256)</ParamField>
<ParamField body="x-amz-credential" type="string" required>AWS signature algorithm (AWS4-HMAC-SHA256)</ParamField>
<ParamField body="x-amz-date" type="string" required>Request timestamp</ParamField>
<ParamField body="policy" type="string" required>Base64-encoded policy document</ParamField>
<ParamField body="x-amz-signature" type="string" required>Request signature</ParamField>
<ParamField body="file" type="file" required>The file to be uploaded</ParamField>
