Product Download - corrupt file / MIME Type
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!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Product Download - corrupt file / MIME Type
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
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
Re: Product Download - corrupt file / MIME Type
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
}
}