New issue
Advanced search Search tips

Issue 722299 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Getting incorrect mime-type for macro-enabled files on chromeOS

Project Member Reported by upasana....@synerzip.com, May 15 2017

Issue description

Chrome Version: 58.0.3029.89 (Official build)(64-bit)
Platform: stable channel gnawty
OS: Chrome OS

What steps will reproduce the problem?

(1) Turn off flag(chrome://flags) for "Office Editing for Docs, Sheets & Slides".
(2) Open the attached html file(mimetypeAllEvents.html) in chrome browser.
(3) Drag and drop any macro-enabled file (.docm, .xlsm, .pptm)

What is the expected result?
Should print the correct mime-type of macro-enabled file.

What happens instead?
Prints empty string.

Additional Information:
(1) Open the attached html file(mimetype.html) in chrome browser. Open developer console.
(2) Drag and drop any docx file
(3) Check console for the message from Chrome. The console prints correct mime type for docx file. (Please refer msword-docx-mimetype.png)
(4) Now perform step 2 and 3 for docm file.
(5) The mime type for docm is printed as application/zip.(Please refer msword-docm-mimetype.png)
 
What is the expected result?
Should print the correct mime-type of macro-enabled file.
 
mimetypeAllEvents.html
858 bytes View Download
mimetype.html
504 bytes View Download
msword-docx-mimetype.png
60.0 KB View Download
msword-docm-mimetype.png
57.0 KB View Download
Description: Show this description

Comment 2 Deleted

Comment 3 Deleted

Please Note: Same issue has been observed for microsoft template files. Chrome browser sends incorrect mime-type as 'application/zip' for 2k7(.dotx/.xltx/.potx) template files and 'application/octet-stream' for 2k3(.dot/.xlt/.pot) template files. 
Components: Platform>Apps>FileManager

Comment 6 by sashab@chromium.org, Feb 24 2018

Labels: CrOS-FilesApp

Comment 7 by sashab@chromium.org, Feb 28 2018

Labels: -CrOS-FilesApp

Comment 8 by sashab@chromium.org, Apr 12 2018

Labels: -Pri-2 CrOSFilesFeature-FileIntents Hotlist-GoodFirstBug Pri-3
Status: Available (was: Untriaged)

Comment 9 by jsb...@chromium.org, Apr 23 2018

Components: Blink>FileAPI
Extension-to-filetype mapping is OS- and even user-dependent, which is problematic in general. See:

https://github.com/w3c/FileAPI/issues/51 and issue 155455

... but on CrOS we are in control, so could populate the mapping?


Components: Blink>Storage>FileAPI
Components: -Blink>FileAPI

Sign in to add a comment