I have an api endpoint stored in an String url = "API_endpoint". I want to upload an image through my app to that API endpoint using Volley or Retrofit library. I need to give the ("Authorisation",token) as header and the photo will be send in the form data ("file",image). Can anyone help me out to do so.

I am trying to upload an image to the server using my API endpoint but I tried almost everything but I was not able to do so.

0

There are 0 best solutions below