# upload Profile Image

## 프로필 사진 업로드

<mark style="color:orange;">`PUT`</mark> `http://rightnow.p-e.kr/user/upload/image/:email`

#### Request Body

| Name | Type | Description |
| ---- | ---- | ----------- |
| file | file |             |

{% tabs %}
{% tab title="200: OK 이미지 업로드 성공" %}

```javascript
{
    "message":"ok"
}
```

{% endtab %}

{% tab title="404: Not Found 보내준 파일이 없을때" %}

```javascript
{
    "message":"err"
}
```

{% endtab %}

{% tab title="500: Internal Server Error 서버 에러" %}

```javascript
{
    "message":"err"
}
```

{% endtab %}

{% tab title="400: Bad Request 파일형식(jpg, jepg, png만 허용)이 일치하지 않을때" %}

```javascript
{
    'message':'Only .png, .jpg and .jpeg format allowed.'
}
```

{% endtab %}
{% endtabs %}
