- This topic has 4 replies, 4 voices, and was last updated 13 years, 9 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Unable to have an Excel file as Downloadable product
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
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
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.”
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
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.