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

MultiPartRequest bug #4

Open
com314159 opened this issue Oct 7, 2014 · 2 comments
Open

MultiPartRequest bug #4

com314159 opened this issue Oct 7, 2014 · 2 comments

Comments

@com314159
Copy link

MultiPartRequest can't upload file, I think the bug is in SslHttpStack,
setMultiPartBody(postRequest,request); //setEntity
setEntityIfNonEmptyBody(postRequest, request); //setEntity

you have set httpRequest.setEntity(entity) twice, so the MuliPartBody entity is override by getBody entity.

@annelorayne
Copy link

@com314159 There is a MultiPartRequestActivity class in your code?

@com314159
Copy link
Author

@annelorayne
no.

I have write a demo project, it now can upload file. you can clone it.
https://github.com/com314159/VolleyMultiPartRequest

the core code is in MultiPartStack.java

If it can't upload file large than 10M, you should set connection timeout longer or use the default timeout.

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

No branches or pull requests

2 participants