Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Unable to have an Excel file as Downloadable product

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Unable to have an Excel file as Downloadable product

Tagged: Application, Download, Open, This is not a valid .csv file extension.

  • This topic has 4 replies, 4 voices, and was last updated 14 years, 3 months ago by amin007.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 13, 2011 at 4:21 pm #2710
    Alec
    Member

    I have a file as part of a product that is an Excel file, .xls.

    When I receive the encrypted link the download looks to be fine, it recognises the name and extension OK.

    Excel then starts to load, but I get the error message “The file you are trying to open, ‘DDAnalysis-5.xls’, is in a different format than specified by the file extension……”

    It goes on to open the file but it is all strange. An encrypted link generated from Admin section is http://www.justdoproperty.co.uk/wp-content/plugins/wp-cart-for-digital-products/download.php?file=o0qKjiXBr068CspJ2VoUvHxxlKeWt5AralWMKESRR%2FsTjNRoNIl0%2FKzkR7H4PqLYlgpQdeg7KRCR1xi3wysCyc3qGp2sjoj56T3DHOUr.

    If I open it direct from the server address it works fine.

    Any thoughts?

    Alec

    February 13, 2011 at 9:55 pm #29025
    Frank
    Member

    Yep you are right, does the same thing for me. Have you thought of just zipping it up and offering that as a download?

    Frank

    February 14, 2011 at 1:00 am #29026
    wzp
    Moderator

    What happens if you save the downloaded files first and then open them? Some applications may not like the fact that downloads are being served up in “chunks.”

    February 16, 2011 at 10:18 pm #29027
    Alec
    Member

    Hi,

    Frank – Yes Zipping would work, but some users may not know what to do with that as we’re a non technical site.

    wzp – via the ‘download’ option in eStore the files are downloaded first and this is when I get the issue.

    I have found out that by unticking the ‘download’ box they Excel file downloads and opens fine, the associated PDF is just not fully hidden.

    I guess I choose to leave unhidden or zip and hide!

    Thanks

    February 17, 2011 at 12:48 am #29028
    amin007
    Participant

    This could also happen if your server is having issues with the mimetype. Try doing the following tweak:

    Open the “download.php” file and search for the following line of code:

    header("Content-Type: ".$mimetype);

    once you find it change it to the following:

    header("Content-type: application/force-download");

    There will be a few occurrences so change them all. Now try a download.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ