Hi folks,

I'm using Akka's Camel module to build an endpoint to handle file uploads.

The arriving request headers when uploading a file using an html form
(withenctype="multipart/form-data") is:

CamelHttpUrl -> http://localhost:8080/add,
Keep-Alive -> 300,
Connection -> keep-alive,
Content-Length -> 568,
MessageExchangeId -> ID-macbook-local-53142-1310548391856-0-8,
Accept -> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,
Cache-Control -> max-age=0,
CamelHttpMethod -> POST,
CamelHttpQuery -> null,
Content-Type -> multipart/form-data;
boundary=---------------------------147483316912648177091998097157,
CamelHttpServletRequest ->
org.eclipse.jetty.servlets.MultiPartFilter$Wrapper@4545f5e3,
Accept-Charset -> ISO-8859-1,utf-8;q=0.7,*;q=0.7,
Accept-Language -> en-us,en;q=0.5,
Accept-Encoding -> gzip,deflate,
User-Agent -> Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.0.19) Gecko/2010031218 Firefox/3.0.19,
Host -> localhost:8080, CamelHttpUri -> /add,
CamelHttpServletResponse -> HTTP/1.1 200
, CamelHttpPath -> /add, file -> test.htm

The request body however is empty. Any suggestions? I'm using Apache
Camel 2.7.1.

Thanks in advance.
Best,
Parsa

Reply via email to