Browser issue Office 2013 files not opening in Android

optrex

Well-known member
Office 2013 files are not opening in Android in resources manager.

It doesn't seem to matter if its a docx or a pdf. If it's been saved using office 2013, Android will download the file but won't auto open. The message says "can't open file."

Going to the download folder in Android, the file opens fine.
 
This is unfortunately outside the scope of XenForo and is controlled by the browser. We just send the file. The fact that it opens externally means that the file has been sent correctly.
 
This is unfortunately outside the scope of XenForo and is controlled by the browser. We just send the file. The fact that it opens externally means that the file has been sent correctly.
Mike, recent posts on some support forums seem to indicate the headers can control this. It seems that when the mimetype is referred to pdf or xdownload the issue is apparent, but if the mimetype is changed to request.setMimeType("application/pdf"); the fault goes away. Is there anything I can change in any of the files to force this within the header?
 
It's something that would have to be changed in the attachment's "view" class. This does happen in a couple places in XF.

Note that the settings are done as they are for security reasons. I couldn't comment on what would happen with PDFs if they were displayed inline.
 
Back
Top Bottom