Has anyone been able to accomplish sending a
multipart/form-data POST in Android with Volley yet? I have had no success trying to upload an
image/png using a POST request to our server and am curious if anyone has.
I believe the default way to do this would be to override
public byte getPostBody() in the
Request.java class and attach the
File there with a blank Header key for the boundary. However, converting my file to a
String for the
Map<String, String> postParams and then having it encoded again seems obtuse and not really elegant. Also I've been unsuccessful in my attempts. This is really the only thing holding us back from switching to this library.
Anyway, all thoughts and answers are extremely appreciated. Thank you for your help.