Digital products: Downloads broken, plugin without output
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!
Digital products: Downloads broken, plugin without output
Hello,
I tried to configure digital downloads and came across some problems and questions.
First – what works perfectly:
Initially I added a new attribute with Domain 'Media', Status 'enabled' and Type 'Download', which I then assigned to each of my products inside tab 'Characteristics'.
In the tab 'Downloads' of my products, I uploaded the file and set the Status to 'enabled'. The name is taken from the file name, the Path is set to e.g. '4/9/4952577a0c20ac41f374b91e8f3e3e48.pdf'.
When searching for 'anhang-a.pdf' in the database, that string is found in three tables:
Environment:
TYPO3: 8.7.8 (non-composer mode)
aimeos: 17.10.0
aimeos_dist: 17.10.0
PHP: 7.0.22
Server: Apache/2.4.27 (Unix)
Did I configure something wrong or missed a setting?
Could you explain where download media files are stored? In 'uploads/tx_aimeos/' only the product images are found.
I tried to configure digital downloads and came across some problems and questions.
First – what works perfectly:
- I get an email with a download link after I update the payment status.
- In the account order history, the download link is then shown, too.
- I can download my files (PDF and ZIP), but cannot open them. Both files are broken. They have the same file size as the original files, though.
- The plugin 'Aimeos Shop - Account download' does not render any output.
- Where are the uploaded files stored?
Initially I added a new attribute with Domain 'Media', Status 'enabled' and Type 'Download', which I then assigned to each of my products inside tab 'Characteristics'.
In the tab 'Downloads' of my products, I uploaded the file and set the Status to 'enabled'. The name is taken from the file name, the Path is set to e.g. '4/9/4952577a0c20ac41f374b91e8f3e3e48.pdf'.
When searching for 'anhang-a.pdf' in the database, that string is found in three tables:
- mshop_attribute
- mshop_index_text
- mshop_order_base_product_attr
Environment:
TYPO3: 8.7.8 (non-composer mode)
aimeos: 17.10.0
aimeos_dist: 17.10.0
PHP: 7.0.22
Server: Apache/2.4.27 (Unix)
Did I configure something wrong or missed a setting?
Could you explain where download media files are stored? In 'uploads/tx_aimeos/' only the product images are found.
Re: Digital products: Downloads broken, plugin without outpu
Can you generate a MD5 or SHA1 hash over the original file and the downloaded one? Are the hashes different?Sebastian wrote:
- I can download my files (PDF and ZIP), but cannot open them. Both files are broken. They have the same file size as the original files, though.
- The plugin 'Aimeos Shop - Account download' does not render any output.
Yes, The 'Aimeos Shop - Account download' plugin has no visual output. Only the file is handed over to the browser.
The files are stored in ./uploads/tx_aimeos/files/ subdirectories.Sebastian wrote:
- Where are the uploaded files stored?
Do you want the file to be available to all users at the catalog detail page or only for customers paying for it?Sebastian wrote: Initially I added a new attribute with Domain 'Media', Status 'enabled' and Type 'Download', which I then assigned to each of my products inside tab 'Characteristics'.
In the tab 'Downloads' of my products, I uploaded the file and set the Status to 'enabled'. The name is taken from the file name, the Path is set to e.g. '4/9/4952577a0c20ac41f374b91e8f3e3e48.pdf'.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Digital products: Downloads broken, plugin without outpu
Ah, I mistook the plugin for a list view of downloadable files. The file should only be available to paying customers. As I can achieve that with the account order history, that's fine.aimeos wrote: Yes, The 'Aimeos Shop - Account download' plugin has no visual output. Only the file is handed over to the browser.
Do you want the file to be available to all users at the catalog detail page or only for customers paying for it?
I generated MD5, SHA1 and SHA-256 hashes using onlinemd5.com. The hashes from the original file and the downloaded version are different, the byte size is exactly the same.aimeos wrote: Can you generate a MD5 or SHA1 hash over the original file and the downloaded one? Are the hashes different?
Found the files. They are stored inside a hidden subfolder '/uploads/tx_aimeos/.secure/'. I'm able to open these files with generated names like '4952577a0c20ac41f374b91e8f3e3e48.pdf', too. Upload works correct then.aimeos wrote: The files are stored in ./uploads/tx_aimeos/files/ subdirectories.
So there seems to be a problem when these stored files are downloaded and the original file name is returned.
Re: Digital products: Downloads broken, plugin without outpu
Is there maybe some additional output on the download page generated by TYPO3?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Digital products: Downloads broken, plugin without outpu
The download page only contains the content element 'Login' and the plugin 'Aimeos Shop - Account download'.aimeos wrote:Is there maybe some additional output on the download page generated by TYPO3?
I'm using the Aimeos Shop distribution in a fresh installation of TYPO3. The only changes I made were product additions and the installation of RealURL (which I deactivated later, this should not be not the cause).
Re: Digital products: Downloads broken, plugin without outpu
Like we've guessed, TYPO3 adds some code from the page around the downloaded file. We got it to work by removing the Login plugin and added an extension setup template to the page in the backend with this content:
Code: Select all
config.additionalHeaders.1000.header = Cache-control: no-store
page = PAGE
page {
typeNum = 0
headerData >
config {
disableAllHeaderCode = 1
disableCharsetHeader = 1
disablePrefixComment = 1
}
10 = CONTENT
10 {
table = tt_content
select.orderBy = sorting
select.languageField = sys_language_uid
}
}
tt_content.stdWrap >
tt_content.list = COA
tt_content.list.20 = CASE
tt_content.list.20.key.field = list_type
tt_content.list.templateName >
tt_content.list.templateRootPaths >
tt_content.list.partialRootPaths >
tt_content.list.layoutRootPaths >
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Digital products: Downloads broken, plugin without outpu
Thank you! Now all downloaded files can be opened.