1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Browser Issue Office 2013 files not opening in Android

Discussion in 'Resolved Bug Reports' started by optrex, May 8, 2014.

  1. optrex

    optrex Active 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.
  2. Mike

    Mike XenForo Developer Staff Member

    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.
  3. optrex

    optrex Active Member

    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?
  4. Mike

    Mike XenForo Developer Staff Member

    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.

Share This Page