Skip to main content

Upload Image

user profile

Upload new profile

Intro

You will need to be logged in to Get change link. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel dolor lacinia, pellentesque ligula vitae, ultrices dui. In tincidunt velit sit amet neque aliquet, a vulputate purus lobortis.

Request Headers

Origin: <CLIENT_APP_URL>
client_id: <API_CLIENT_ID>
Authorization: <BEARER_TOKEN>

Request Form-Data

file: image/png, image/gif, image/jpeg

Body Validation

  1. file - An image

Request

POST
http://localhost:5501/api/v1/auth/profileImage

Response

{
"status": "String",
"data": "String"
}

Response Validation

  1. status - request status
  1. data - user photo name

Example

Headers

Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Body

file: selfie.png

Response

{
"status": "success",
"data": "629ad74878103d4e4a74e9e6-1658134017506.jpeg"
}