You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "David Johnson (JIRA)" <ji...@apache.org> on 2010/07/08 04:24:51 UTC
[jira] Commented: (ROL-1871) Media File upload did not recognize
PDF, saved it as "octet stream"
[ https://issues.apache.org/jira/browse/ROL-1871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12886201#action_12886201 ]
David Johnson commented on ROL-1871:
------------------------------------
Author: snoopdave
Date: Thu Jul 8 02:21:27 2010
New Revision: 961558
URL: http://svn.apache.org/viewvc?rev=961558&view=rev
Log:
Fix for ROL-1871: Media File upload did not recognize PDF, saved it as "octet stream"
I was not able to duplicate this on my machine (Mac) and I suspect it happens only on Windows, but sometimes when you upload a Media File, Struts cannot guess the content-type correctly and defaults to an 'octet stream' type. This commit adds logic to double-check and whenever an 'octet-stream' type file is uploaded, Roller will now attempt to use the file's extension to guess a more accurate content-type.
https://issues.apache.org/jira/browse/ROL-1871
Modified:
roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/editor/MediaFileAdd.java
> Media File upload did not recognize PDF, saved it as "octet stream"
> -------------------------------------------------------------------
>
> Key: ROL-1871
> URL: https://issues.apache.org/jira/browse/ROL-1871
> Project: Roller
> Issue Type: Bug
> Components: Media files / uploads
> Affects Versions: 5.0
> Reporter: David Johnson
> Assignee: David Johnson
> Fix For: 5.0
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.