Review main Merged

76550[FEATURE] Add new possibilities to modify DefaultUploadFolder settings

Andreas Nedbal CR +2 V +2 Hard +564 −10 updated 03/23/23, 09:59

Commit message

Before this change the resolving of the default upload folder
was done in BackendUserAuthentication. As new users wished for
additional ways to configure the default upload folder (e.g.
per page, per record, etc.), it started to not make sense that
the logic is present in the backend user.

The DefaultUploadFolderResolver uses the same logic as before
including a new `options.defaultUploadFolder` PageTSconfig setting,
allowing to change this setting on a per-page level.

In addition, a new PSR-14 event
`AfterDefaultUploadFolderWasResolvedEvent` is introduced
receiving the same arguments as the hook in BackendUserAuthentication named

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauthgroup.php']['getDefaultUploadFolder']

which serves the same purpose. This way, the upload folder
can also be modified by PHP developers.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 13