RE: PATCH org.apache.commons.httpclient.methods.multipart.FilePart

2003-06-21 Thread Eric M Devlin
at 12:57 PM, Eric M Devlin wrote: > Hey Mike, Adrian & Oleg > Got it. Thanks for the kick in the right direction. I wasn't seeing > addPart. Please find attached the contrib file. Hope it helps someone > else. I tried to make it as apacheish as possible if it needs a

RE: PATCH org.apache.commons.httpclient.methods.multipart.FilePart

2003-06-20 Thread Eric M Devlin
t(name, file, contentType, charset); mpm.addPart(part); Mike On Thursday, June 19, 2003, at 10:23 PM, Eric M Devlin wrote: > Hey Adrian, > Ok, but what about what something below? > > MultipartPostMethod mpm = new MultipartPostMethod( > "http://localhost:8080"; + > "

RE: PATCH org.apache.commons.httpclient.methods.multipart.FilePart

2003-06-19 Thread Eric M Devlin
self or would you like me to take a crack at it? I don't mind either way. Thanks a lot for the contribution, it will definitely be useful to a number of people. Regards, Adrian Sutton. On Thursday, June 19, 2003, at 12:46 PM, Eric M Devlin wrote: > Hey, > This is a patch which w

PATCH org.apache.commons.httpclient.methods.multipart.FilePart

2003-06-18 Thread Eric M Devlin
Hey, This is a patch which will determine the content type if null based on file extension. I used the file extension mapping from $TOMCAT_HOME/conf/web.xml. As a side note, I'm having trouble sending gif files. Any thoughts or a kick in the right direction would be helpful. Thanks and Hope It