You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2010/07/15 05:02:52 UTC

[jira] Commented: (CAMEL-2949) Attachment DataHander.getName() returns the name of the temporary storage file, not the MIME part name

    [ https://issues.apache.org/activemq/browse/CAMEL-2949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60670#action_60670 ] 

Willem Jiang commented on CAMEL-2949:
-------------------------------------

Applied patch with thanks to Paul, also merge this change into camel-http4.

> Attachment DataHander.getName() returns the name of the temporary storage file, not the MIME part name
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2949
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2949
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 2.5.0
>            Reporter: Paul Mietz Egli
>            Assignee: Willem Jiang
>         Attachments: CAMEL-2949.patch
>
>
> When multipart file uploads are converted to message attachments in the DefaultHttpBinding class, the DataHandler that is created for the attachment returns the name of the temporary file created by Jetty, not the value of the name from the Content-Disposition header.  It would be useful to have the actual attachment name instead of the temporary filename in the DataHandler object for easier downstream processing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.