[Skip to main content](#vessel-content)

#   download ZIP-files

##

- **[pot1906dk](/forum/user/4989-pot1906dk "View pot1906dk's Profile")**
- [![pot1906dk's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4989-pot1906dk "View pot1906dk's Profile") Topic Author
- [ Offline](/forum/user/4989-pot1906dk)

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 10 months ago [\#32892](#32892) by [pot1906dk](/forum/user/4989-pot1906dk "View pot1906dk's Profile")  *[download ZIP-files](/forum/2-general-talk-about-hikashop/32892-download-zip-files#32892 "There's another problem. I am aware that this topic has been discussed earlier in the forum, but there is something that I do not get!  When a customer buys a zip file, the downloaded file can't be unzipped, the program claims that the file cannot be recognized as an archive file. According to the earlier discussions on this, the problem should be that the server uses wrong MIME types or that it uses GZIP.  Now I have tried this : Copied the zip file from Hikashop's safe folder to an accessible folder. After that I download the file, using my browser, by entering the adress of the file. And there are no problems with the downloaded file. If the problem should be server related, I suppose that I would encounter it in this case too?  To me it looks as if the download process of Hikashop makes the file unuseable.")* was created by *[pot1906dk](/forum/user/4989-pot1906dk "View pot1906dk's Profile")*

There's another problem. I am aware that this topic has been discussed earlier in the forum, but there is something that I do not get!

When a customer buys a zip file, the downloaded file can't be unzipped, the program claims that the file cannot be recognized as an archive file. According to the earlier discussions on this, the problem should be that the server uses wrong MIME types or that it uses GZIP.

Now I have tried this :
Copied the zip file from Hikashop's safe folder to an accessible folder. After that I download the file, using my browser, by entering the adress of the file. And there are no problems with the downloaded file. If the problem should be server related, I suppose that I would encounter it in this case too?

To me it looks as if the download process of Hikashop makes the file unuseable.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzMyODkyLWRvd25sb2FkLXppcC1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 10 months ago [\#32907](#32907) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: download ZIP-files](/forum/2-general-talk-about-hikashop/32892-download-zip-files#32907 "There's another problem. I am aware that this topic has been discussed earlier in the forum, but there is something that I do not get!  When a customer buys a zip file, the downloaded file can't be unzipped, the program claims that the file cannot be recognized as an archive file. According to the earlier discussions on this, the problem should be that the server uses wrong MIME types or that it uses GZIP.  Now I have tried this : Copied the zip file from Hikashop's safe folder to an accessible folder. After that I download the file, using my browser, by entering the adress of the file. And there are no problems with the downloaded file. If the problem should be server related, I suppose that I would encounter it in this case too?  To me it looks as if the download process of Hikashop makes the file unuseable.")*

When you download the file via HikaShop, it's possible that the gzip compression can be done by joomla if you activated the gzip compression in the configuration of joomla, which would then corrupt the file. So you should check that this option is turned off.

It can also come from your server. When you download the file via HikaShop, the file type is a php file because HikaShop checks that the person has access to the file, before reading the file and sending it to the browser. But when you download the file directly, the file type is a zip. On some servers, there are some "optimisations" in place which automatically gzip the response to the browser if the file type is php. In such cases that would also corrupt the file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzMyODkyLWRvd25sb2FkLXppcC1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[pot1906dk](/forum/user/4989-pot1906dk "View pot1906dk's Profile")**
- [![pot1906dk's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4989-pot1906dk "View pot1906dk's Profile") Topic Author
- [ Offline](/forum/user/4989-pot1906dk)

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 10 months ago [\#32912](#32912) by [pot1906dk](/forum/user/4989-pot1906dk "View pot1906dk's Profile")  Replied by *[pot1906dk](/forum/user/4989-pot1906dk "View pot1906dk's Profile")* on topic *[Re: download ZIP-files](/forum/2-general-talk-about-hikashop/32892-download-zip-files#32912 "There's another problem. I am aware that this topic has been discussed earlier in the forum, but there is something that I do not get!  When a customer buys a zip file, the downloaded file can't be unzipped, the program claims that the file cannot be recognized as an archive file. According to the earlier discussions on this, the problem should be that the server uses wrong MIME types or that it uses GZIP.  Now I have tried this : Copied the zip file from Hikashop's safe folder to an accessible folder. After that I download the file, using my browser, by entering the adress of the file. And there are no problems with the downloaded file. If the problem should be server related, I suppose that I would encounter it in this case too?  To me it looks as if the download process of Hikashop makes the file unuseable.")*

I just checked that GZip is turned off in my Joomla install.

If the download file is .php, changing the mime type for .zip won't make much difference i guess.

I suppose that setting mime type for php to octet-stream would make all pages unavailable.

So I think that I must see if GZIP is enforced by the server somehow. Unless someone has a better suggestion.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzMyODkyLWRvd25sb2FkLXppcC1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 10 months ago [\#32914](#32914) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: download ZIP-files](/forum/2-general-talk-about-hikashop/32892-download-zip-files#32914 "There's another problem. I am aware that this topic has been discussed earlier in the forum, but there is something that I do not get!  When a customer buys a zip file, the downloaded file can't be unzipped, the program claims that the file cannot be recognized as an archive file. According to the earlier discussions on this, the problem should be that the server uses wrong MIME types or that it uses GZIP.  Now I have tried this : Copied the zip file from Hikashop's safe folder to an accessible folder. After that I download the file, using my browser, by entering the adress of the file. And there are no problems with the downloaded file. If the problem should be server related, I suppose that I would encounter it in this case too?  To me it looks as if the download process of Hikashop makes the file unuseable.")*

Yes, that's where I would look in your case.

We use HikaShop on our own website to sell HikaShop itself and we use that exact feature to deliver the packages which are also in zip. The files do not come out corrupted. So it's definitely not a problem in HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzMyODkyLWRvd25sb2FkLXppcC1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[pot1906dk](/forum/user/4989-pot1906dk "View pot1906dk's Profile")**
- [![pot1906dk's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4989-pot1906dk "View pot1906dk's Profile") Topic Author
- [ Offline](/forum/user/4989-pot1906dk)

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 10 months ago [\#32925](#32925) by [pot1906dk](/forum/user/4989-pot1906dk "View pot1906dk's Profile")  Replied by *[pot1906dk](/forum/user/4989-pot1906dk "View pot1906dk's Profile")* on topic *[Re: download ZIP-files](/forum/2-general-talk-about-hikashop/32892-download-zip-files#32925 "There's another problem. I am aware that this topic has been discussed earlier in the forum, but there is something that I do not get!  When a customer buys a zip file, the downloaded file can't be unzipped, the program claims that the file cannot be recognized as an archive file. According to the earlier discussions on this, the problem should be that the server uses wrong MIME types or that it uses GZIP.  Now I have tried this : Copied the zip file from Hikashop's safe folder to an accessible folder. After that I download the file, using my browser, by entering the adress of the file. And there are no problems with the downloaded file. If the problem should be server related, I suppose that I would encounter it in this case too?  To me it looks as if the download process of Hikashop makes the file unuseable.")*

Just wondering:

Does it give any meaning in relation to this, that
Registered PHP streams is set to : https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip

I am not that much of a php wizard that I can see if this setting is relevant?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzMyODkyLWRvd25sb2FkLXppcC1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 10 months ago [\#32926](#32926) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: download ZIP-files](/forum/2-general-talk-about-hikashop/32892-download-zip-files#32926 "There's another problem. I am aware that this topic has been discussed earlier in the forum, but there is something that I do not get!  When a customer buys a zip file, the downloaded file can't be unzipped, the program claims that the file cannot be recognized as an archive file. According to the earlier discussions on this, the problem should be that the server uses wrong MIME types or that it uses GZIP.  Now I have tried this : Copied the zip file from Hikashop's safe folder to an accessible folder. After that I download the file, using my browser, by entering the adress of the file. And there are no problems with the downloaded file. If the problem should be server related, I suppose that I would encounter it in this case too?  To me it looks as if the download process of Hikashop makes the file unuseable.")*

That's not relevant.
The problem should be in either a .htaccess at the root of your website or in the httpd.conf of apache.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzMyODkyLWRvd25sb2FkLXppcC1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.238 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
