Bug #51780
closed
Typoscript constant editor not supporting file upload anymore
Added by Bas van Beek about 11 years ago.
Updated about 11 years ago.
Description
Typoscript code:
- cat=basic/xxx/010; type=file[png,jpg,gif]; label= file[png, jpg, gif] eine Datei
t9 = fileadmin/clear.gif
When using the constant wizard we can see the field, but we cannot upload a file to it anymore.
Tested with TYPO3 6.1.4.
See instructions:
http://wiki.typo3.org/TypoScript_Constants
Files
- Status changed from New to Needs Feedback
Did that ever work? What was the last TYPO3 version where you can report that it works?
Hi,
Paste this constants to the template in a TYPO3 4.X install:
plugin.multishop {
# cat=file upload//Files; type=file[png,jpg,gif]; label= Website Logo
defaultWebsiteLogoFile = logo*.png
}
Then go to the constant editor and select "file upload" in the dropdown menu.
You will then see a file upload form. This form element is missing in TYPO3 6.1. I have attached a screenshot.
Hi Bas,
in older TYPO3 versions there was a resource field in TypoScript template records, which allowed you to upload files. These files could then be accessed the way you try to do that: filename without path and with a star at the end of the name.
However, this feature was intentionally removed. Here is the documentation. You should now reference the file from the filesystem with its path relative to the TYPO3 root folder.
- Status changed from Needs Feedback to Closed
Also available in: Atom
PDF