Product Download - corrupt file / MIME Type

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
crrdr
Posts: 2
Joined: 13 Feb 2021, 11:31

Product Download - corrupt file / MIME Type

Post by crrdr » 13 Feb 2021, 11:40

We have a problem with the product download function in combination with ZIP archives. After clicking a download link in the frontend (customer order history), the download dialog pops up, but always shows the MIME-type "HTML", regardless of the file extension of the original file. The download works, but the file is corrupt and cannot be opened.

If we open the original file via FTP in the specific path shown in the backend, all files are valid. Any ideas what the reason could be?

Thank you in advance!

TYPO3 Version: 10.4.12
Aimeos Version: 20.10.5
Aimeos_dist: 20.10.1
Webserver: Debian/Apache2

crrdr
Posts: 2
Joined: 13 Feb 2021, 11:31

Re: Product Download - corrupt file / MIME Type

Post by crrdr » 18 Feb 2021, 16:38

We solved the problem by inserting the download plugin with typoscript and creating an empty template, maybe TYPO3 wrapped the download file with additional content:

Code: Select all

page = PAGE
page {
 typeNum = 0
 config {
   disableAllHeaderCode = 1
   xhtml_cleaning = 0
   admPanel = 0
   debug = 0
   no_cache = 1
 }

 10 = USER
 10 {
   userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
   vendorName = Aimeos
   extensionName = Aimeos
   pluginName = account-download
   controller = Account
   action = download
   settings =< plugin.tx_aimeos.settings
 }
 
}

Post Reply