[
https://issues.apache.org/jira/browse/GUACAMOLE-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15698942#comment-15698942
]
Michael Jumper commented on GUACAMOLE-129:
------------------------------------------
The mimetype used by Guacamole here is simply "application/octet-stream", and
this was actually also the mimetype used in past releases. Only the download
mechanism was changed, in this case relying on the browser itself to handle the
download, rather than assemble the file piece by piece with JavaScript alone.
Unfortunately, the reason that Internet Explorer is saving ".xlsx" as ".zip" is
because it is ignoring the "application/octet-stream" mimetype, instead
inspecting the contents of the file:
https://msdn.microsoft.com/en-us/library/ms775147(v=vs.85).aspx
Because a ".xlsx" file is actually a ".zip" file containing an XML-based Office
document (and related files), it is misrecognized by Internet Explorer as a
".zip".
It looks like this can be resolved through using the "Content-Disposition"
header. From the link above:
{quote}
If the file is marked as "content-disposition=attachment" in the HTTP header,
Internet Explorer treats the file name from the URL as final and does not
rename it before placing it in the cache.
{quote}
I'm slightly surprised that Microsoft's own browser fails to properly detect
the mimetype of Microsoft's own document type ... but designing a browser to
universally assume "application/octet-stream" is incorrect and override the
mimetype is pretty brain-damaged already.
> Office mime-types problem with IE
> ---------------------------------
>
> Key: GUACAMOLE-129
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-129
> Project: Guacamole
> Issue Type: Bug
> Affects Versions: 0.9.10-incubating
> Environment: Ubuntu 16, docker containers on latest 0.9.10 with
> Windows internet explorer client.
> Reporter: Robin
> Priority: Minor
>
> When downloading an office file format using the guacamole file transfer
> Internet Explorer will save an xlsx file as a zip file. This does not happen
> on the earlier 0.9.9 release. Possibly a missing server mime-type.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)