Hi On Fri, Mar 11, 2011 at 4:50 PM, Rice Yeh <[email protected]> wrote:
> Hi, > How do I compose a mulitpart/form-data with a form field and a file like > below with cxf? > > Content-type: multipart/form-data, boundary=AaB03x > > --AaB03x > content-disposition: form-data; name="field1" > > Joe Blow > --AaB03x > content-disposition: form-data; name="pics"; filename="file1.txt" > Content-Type: text/plain > > ... contents of file1.txt ... > --AaB03x-- > > Can you open a JIRA please ? CXF does not support writing mulltipart/form-data (as opposed to simpler multiparts) just yet, it can only read such payloads. In fact it just yesterday I thought I'd need this enhancement asap - for the management-web resource be able to return log files such that the browser knows the actual file names... I may be able to fix it for 2.4.0/2.3.4 thanks, Sergey > > Regards, > Rice > -- Sergey Beryozkin Application Integration Division of Talend <http://www.talend.com> http://sberyozkin.blogspot.com
