title: problem with upload image multipart to API Kotlin
body: <p>I'm trying to upload some data to server, but after sending it, with the help of <code>HttpLoggingInterceptor</code> I find out all data has been uploaded successfully except the image, I'll explain some details, and at the end will add the interesting log</p>
  <p>here is the api service:</p>
  <pre><code>@Multipart
  @POST(&quot;api/v1/movies/multi&quot;)
  suspend fun pushMoviesMulti(
                              @Part poster: MultipartBody.Part?,
                              @Part (&quot;title&quot;) title:RequestBody,
                              @Part (&quot;imdb_id&quot;) imdb_id:RequestBody,
                              @Part (&quot;country&quot;) country:RequestBody,
                              @Part (&quot;year&quot;) year:RequestBody
  ): Response&lt;UploadMovieModel&gt;
  </code></pre>
  <p>I'm picking image from gallery and turn the retrieved Uri to the real path with the help of this function:
  <a href="https://gist.github.com/farshad049/78885de12972b16ee20996636216ab32" rel="nofollow noreferrer">get real path class</a></p>
  <p>and then I'm preparing the required image for upload with this function:</p>
  <pre><code>private fun convertImagePathToRequestBody(path:String):MultipartBody.Part?{
      if (!path.equals(&quot;&quot;, ignoreCase = true)) {
          val file = File(path)
          val reqFile = file.asRequestBody(&quot;*/*&quot;.toMediaTypeOrNull())
          imageRequestBody = MultipartBody.Part.createFormData(&quot;movie_poster&quot;, file.name, reqFile)
      }
      return imageRequestBody
  }
  </code></pre>
  <p>here is the interesting part:</p>
  <p><a href="https://gist.github.com/farshad049/51a9c13556d89fcfb7a1e06956502bc0" rel="nofollow noreferrer">upload image file log</a></p>
  <p>where is the issue? why the returned response in image part is empty?</p>