Change default upload folder
If an image is uploaded via "Select & upload files", it's stored in fileadmin/user_upload/.
It would be very useful, if you can overwrite this for specific pages, e.g. in Page TSconfig. For example for a page "news storage", where all images should be uploaded to fileadmin/user_upload/images/news/.
#2 Updated by Sven Burkert over 1 year ago
- Priority changed from Should have to Must have
- Complexity set to easy
Thank you for this hint and your extension, works great, I've configured upload paths for news, tt_content, pages and more.
But this should be really part of the core. I'm wondering this is not possible without extension.
#3 Updated by Felix Nagel about 1 year ago
It seems in TYPO3 9.x it's possible to change the global default upload folder: https://docs.typo3.org/typo3cms/TSconfigReference/UserTsconfig/Options.html#defaultuploadfolder
It would be nice if changing the upload folder would be possible using TCA, probably as an option in \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig().
#4 Updated by Markus Mächler about 1 year ago
I think it should even be possible to force an editor to choose an upload folder when he uses "Select & upload files". It is very tedious to first upload an image using the filelist and then go back to the record and setup a relation to the image just uploaded. There are cases where a human has to decide to which folder an image belongs, because there are no simple rules that could be used. The default upload folder could then be proposed to the editor, but he should still be able to choose a different folder.
#5 Updated by Georg Ringer 6 months ago
- Status changed from New to Closed
check out the hook
which is also used in the mentioned extension https://github.com/beechit/default_upload_folder/
therefore I am closing this issue