Jump to content

Bug on Virtual Product File Download


Recommended Posts

Hi

 

I am using Prestashop 1.6.11 with virtual products. When I try to download a file I purchased or when I try to download a file from the backoffice under product edit page virtual product tab, I can't download the file but I get a bad data format page as indicated in the attachment.

 

I asked to ther server provider and they told me that everything is OK with the configuration.

 

Can you help me on this?

post-87170-0-86600600-1426800109_thumb.jpg

Link to comment
Share on other sites

Hi

 

I haven't done any upgrade or restoration. However, my hosting server provider was down for a day and this happened after that day. I contacted with them but they claim that there is no configuration change or so. 

 

I decided to change my provider after all. Migrating now... :(

Link to comment
Share on other sites

  • 2 weeks later...

Hi Meg,

 

Did moving to the other provider solve this issue?

 

 

It actually looks like the file to download is not 'downloaded', but is being opened by the browser. And as it is a zip file, you just get this nonsense on your screen.

 

To fix, maybe try to do this:

add to your .htaccess file the following line:

 

 AddType application/octet-stream .zip .doc .mov .avi .pdf .xls .mp4

 

(add more (or take out some) of the extensions you want to "force to download")

 

I think this might fix your problem.

Let me know,

 

pascal.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...