Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send Array of file #52

Closed
enggazzar opened this issue Nov 8, 2016 · 1 comment
Closed

send Array of file #52

enggazzar opened this issue Nov 8, 2016 · 1 comment
Labels

Comments

@enggazzar
Copy link

i want send arrya of file in one request

@amitshekhariitbhu
Copy link
Owner

You can do this in the following way by using upload request :

HashMap<String, File> fileHashMap = new HashMap<String, File>();
fileHashMap.put("imageOne", new File(pathOne));
fileHashMap.put("imageTwo", new File(pathTwo));

AndroidNetworking.upload(url)
   .addMultipartFile(fileHashMap) 

Thanks
Amit Shekhar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants