Android Multipart HTTP Post does not send the File's MIME type

后端 未结 6 1298
挽巷
挽巷 2021-02-05 21:53

Trying to figure what\'s wrong with my codings. I followed a blog post from here.

I managed to get the codes to actually upload the file to a PHP web service. However, f

6条回答
  •  感动是毒
    2021-02-05 21:54

    We have the same issue here. Using HttpMultipartMode.BROWSER_COMPATIBLE removed the correct mimetype being sent.

    Unfortunately using the 'normal' MultipartEntity() is not an option for us, as this way the rails backend messes up the request handling.

    Is there any way to set the content-type of the multipart yourself and use HttpMultipartMode.BROWSER_COMPATIBLE??

提交回复
热议问题