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

后端 未结 6 1168
挽巷
挽巷 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:59

    Instead of including the jars files you can use the http multipart classes defined in android but declared as internal, so you cannot use them directly, you have to download them from the android source code and add them to your project. Some basics modifications must be performed before using them, nothing difficult (change the packages name, remove all logger calls). It works perfectly for me.I hope this could help somebody,

提交回复
热议问题