Skip to content

Backend Module: uploadFolder ignored if in site settings, but overridden if in hidden TypoScript record #1373

Description

@jpmschuler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions