Project

General

Profile

Actions

Feature #68895

closed

Add `options.defaultUploadFolder` to PageTSconfig

Added by Artus Kolanowski over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2015-08-09
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

Adding options.defaultUploadFolder to PageTSconfig is useful for the following scenario:

You have a multi domain setup and each domain (root page) should have its own file mount (folder). You have an editor which has access to several of these domains. The editor uploads files mostly through the CE and not through the filelist module.

Having options.defaultUploadFolder in PageTSconfig allows you to setup the default upload folder for each domain separately. Whenever the editor uploads a file it will be stored in the right folder and the editor has not to care about.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #80697: Define defaultUploadFolder in PageTSconfigClosed2017-04-05

Actions
Actions #1

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

Actions #2

Updated by Gerrit Code Review over 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

Actions #3

Updated by Gerrit Code Review over 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

Actions #4

Updated by Benni Mack over 8 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #5

Updated by Frans Saris over 8 years ago

After some discussion on Slack we come to the next conclusion:

To prevent we do stuff we need to drop later we now go for adding the params $pid = NULL, $table = NULL, $field = NULL to BackendUserAuthentication::getDefaultUploadFolder() and put a hook there so we are able to manipulate the outcome.

Actions #6

Updated by Gerrit Code Review over 8 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

Actions #7

Updated by Gerrit Code Review over 8 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

Actions #8

Updated by Gerrit Code Review over 8 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42470

Actions #9

Updated by Frans Saris over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Christoph Schwarzenberg about 7 years ago

Hi,

I wanted to use this feature in my setup, but it doesn't seem to work.
Setting options.defaultUploadFolder in Page TSconfig has no effect.
Additionally I miss this configuration property in the official Page TSConfig: https://docs.typo3.org/typo3cms/TSconfigReference/7.6/PageTsconfig/Options/

My TYPO3 version is 7.6.16

Christoph

Actions #11

Updated by Stephan Großberndt about 7 years ago

The patch which closed this issue added only a hook making it possible to change the path but not a pagetsconfig option.

Actions #12

Updated by Christoph Schwarzenberg about 7 years ago

Ok.
Is it possible to add this feature, as Artus Kolanowski described it above?

Actions #13

Updated by Frans Saris about 7 years ago

We created an extension that uses the hook and supplies more or
less this feature https://github.com/beechit/default_upload_folder/

Actions #14

Updated by Christoph Schwarzenberg about 7 years ago

Great, thank you very much.

Actions #15

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF