WordPress.org

Forums

WordPress HTTPS (SSL)
HTTPS corrupting downloads of Excel files (1 post)

  1. jonathanrich
    Member
    Posted 1 year ago #

    Hi

    I've been having a problem with downloading Excel files when sending them to download to the browser using PHP in a custom plugin I'm working on. When WordPress HTTPS (SSL) is activated, .xls and .xlsx files are downloaded as corrupted (but other files such as PDF are fine), where as when I deactivate the WordPress HTTPS (SSL) plugin, the files download as normal (without being corrupted).

    The Excel error message is "Excel cannot open this file. The file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file."

    I know this isn't a SSL certificate problem as when I force the entire website to https, it still downloads correctly without corrupting the file. I've also checked the headers and they are identical in the corrupt and non-corrupt versions.

    Info:
    Server: Microsoft-IIS/8.0
    PHP/5.4.14

    Any help or advice would be greatly appreciated!

    Many thanks

    http://wordpress.org/plugins/wordpress-https/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress HTTPS (SSL)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic