Similar to #1046 I now stumbled over backend module not using the correct upload folder, but this is deeper it seems:
After switching to 13LTS I had the problem that two forms in the same system behaved differently - one used custom folder correctly, one did the incorrect fallback to /uploads/tx_powermail
So I debugged a lot and found that the folder constant
- is used by the backend module if the constant is set in a custom TypoScript template record on a (parent) pages
- but is ignored by the backend module if it is set in site TypoScript at
config/sites/foo/constants.typoscript
However in both cases the backend TypoScript module shows the correct value for the constant plugin.tx_powermail.settings.misc.uploadFolder
The funny thing: The TypoScript record can be hidden!
So I have the correct folder in site settings, create a hidden TypoScript Record on the form page with plugin.tx_powermail.settings.misc.uploadFolder = /correct/folder and the module shows correct folder, If I change the override in this hidden TypoScript record to anything not existing, the module falls back.
This is for classic TypoScript config without site sets, so probably I should just switch to site sets, but still this is fishy.
Similar to #1046 I now stumbled over backend module not using the correct upload folder, but this is deeper it seems:
After switching to 13LTS I had the problem that two forms in the same system behaved differently - one used custom folder correctly, one did the incorrect fallback to
/uploads/tx_powermailSo I debugged a lot and found that the folder constant
config/sites/foo/constants.typoscriptHowever in both cases the backend TypoScript module shows the correct value for the constant
plugin.tx_powermail.settings.misc.uploadFolderThe funny thing: The TypoScript record can be hidden!
So I have the correct folder in site settings, create a hidden TypoScript Record on the form page with
plugin.tx_powermail.settings.misc.uploadFolder = /correct/folderand the module shows correct folder, If I change the override in this hidden TypoScript record to anything not existing, the module falls back.This is for classic TypoScript config without site sets, so probably I should just switch to site sets, but still this is fishy.