- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok so this is weird. I upload a zip file. But when I go in and purchase a product and download it via the "my downloadable products " page the file downloads just fine but is missing the .zip extension. It shows as a "all files" in windows. If I add .zip to it, it will open just fine and is a working zip. Ideas that might help? What am I missing here?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still testing but I believe that I found a solution. In the DownloadController.php I edited line to appear in quotes as shown.
>setHeader('Content-Disposition', $contentDisposition . '; filename="'.$fileName.'"');
Can anyone see a problem with doing this?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Downloadable Products are Missing the .Zip Extension
I would add that in the media/downloads folder the files are still there with the zip extension. So something about the link being created on the MY DOWNLOADABLE products page is stripping the .zip.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Downloadable Products are Missing the .Zip Extension
Further testing is showing that this is just in firefox? Edge and Chrome work file and zip extension shows up? Really confused now.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still testing but I believe that I found a solution. In the DownloadController.php I edited line to appear in quotes as shown.
>setHeader('Content-Disposition', $contentDisposition . '; filename="'.$fileName.'"');
Can anyone see a problem with doing this?