Fast-Android-Networking
Fast-Android-Networking copied to clipboard
Ask - How to upload multipart with method put
what i understand is upload() in this library is using method 'post'. how to change it to 'put' ?
Currently it does not support. We will add in the new release.
Okay, Thank you for your quick response @amitshekhariitbhu
Hi, my proposal:
public class ANRequest<T extends ANRequest> { // Multipart builder constructor public ANRequest(MultiPartBuilder builder) { this.mRequestType = RequestType.MULTIPART; this.mMethod = builder.mMethod; ... } ... … public static class MultiPartBuilder<T extends MultiPartBuilder> implements RequestBuilder { private Priority mPriority = Priority.MEDIUM; private int mMethod = Method.POST; // New property ... } // Constructors public MultiPartBuilder(String url) { this.mUrl = url; this.mMethod = Method.POST; // DEFAULT } // New constructor public MultiPartBuilder(String url, int method) { this.mUrl = url; this.mMethod = method; } }
Thank you.
@amitshekhariitbhu Hello Sir, Can you please update the Library Version so that we can use the MULTIPART Functionality with PUT Calls..