An open API service indexing awesome lists of open source software.

https://github.com/hardillb/multipartvolley

A multi-part/form uploader for the Volley HTTP library
https://github.com/hardillb/multipartvolley

android android-library volley

Last synced: 3 months ago
JSON representation

A multi-part/form uploader for the Volley HTTP library

Awesome Lists containing this project

README

          

# MultipartRequest

A Volley Request implementation to support multipart/form-data HTTP Posts

```
MultipartRequest request = new MultipartRequest(url, headers,
new Response.Listener() {
@Override
public void onResponse(NetworkResponse response) {
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
}
});

request.addPart(new FormPart(fieldName,value));
request.addPart(new FilePart(fileFieldName, mimeType, fileName, data);

requestQueue.add(request);
```

## Including in a Project

Add the following to your build.gradle file:

```
repositories {
maven { url 'https://jitpack.io' }
}

compile 'com.github.hardillb:MultiPartVolley:0.0.4'
```