Skip to content

is it support Multiple file upload?? #399

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

Closed
jiahui90 opened this issue Nov 30, 2013 · 9 comments
Closed

is it support Multiple file upload?? #399

jiahui90 opened this issue Nov 30, 2013 · 9 comments
Assignees
Labels
Milestone

Comments

@jiahui90
Copy link

is it support Multiple file upload??

if it can ,who can tell me what i should to do?

@leonardoxh
Copy link

RequestParams params = new RequestParams();
params.put("key1", new File("path"));
params.put("key2", new File("path"));

;)

@smarek
Copy link
Member

smarek commented Dec 14, 2013

It does, @leonardoxh is correct. Closing this issue.

@smarek smarek closed this as completed Dec 14, 2013
@ghost ghost assigned smarek Dec 14, 2013
@lizhanzhishang
Copy link

@smarek when i up more than ten files ,i have get an OOM for this ,and wo cannt do this oom

@smarek
Copy link
Member

smarek commented May 5, 2014

Put here full stacktrace output from LogCat please

@smarek smarek reopened this May 5, 2014
@fineswap
Copy link
Contributor

fineswap commented May 5, 2014

@smarek see #545

@smarek
Copy link
Member

smarek commented May 5, 2014

Oh, so closing, to not duplicate the issue

@smarek smarek closed this as completed May 5, 2014
@gaobq
Copy link
Contributor

gaobq commented May 7, 2014

@smarek when I upload more than one file , web server'll throw Excetion.
the message like: processing of multipart/form-data request failed, stream ended unexpectedly. so I write a jsp page then upload file use a form which's ENCTYPE="multipart/form-data" then web server don't throw exception;
so i think it's there some problem about the httpclient's request property?
a original way to upload file like this:
conn.setRequestProperty("Content-Type", multipart_form_data + "; boundary=" + boundary);
I hope you can give me an answer

@fineswap
Copy link
Contributor

fineswap commented May 7, 2014

@gaobq Please open a new issue with full details, this issue is now closed.

@smarek
Copy link
Member

smarek commented May 7, 2014

@gaobq depending on version of library you do use, this issue has been probably fixed already, see #414

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

5 participants