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
- Host: GitHub
- URL: https://github.com/hardillb/multipartvolley
- Owner: hardillb
- License: apache-2.0
- Created: 2017-04-27T10:18:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-20T07:43:03.000Z (over 4 years ago)
- Last Synced: 2025-04-11T12:17:44.982Z (6 months ago)
- Topics: android, android-library, volley
- Language: Java
- Homepage: https://www.hardill.me.uk/wordpress/2017/05/04/multipart-http-post-requests-with-volley-on-android/
- Size: 75.2 KB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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'
```