I am using Volley Android Multipart VolleyMultipartRequest
request class to upload various types of mime types. i.e, Image,Video,Audio,Document,PDF. Current i am using this method for uploading Image which is working fine.
@Override
protected Map<String, DataPart> getByteData() {
Map<String, DataPart> params = new HashMap<>();
params.put("Key", new DataPart("Filename", byte[], "image/jpeg"));
return params;
}
It is working absolutely fine but for image , what if i want to use this request for all mime types what should i put the last parameter for Video and PDF. For example for image "image/jpeg"
being sent what will be for audio , video and pdf or doc, Any help will be much appropriated.