Task #55177
Epic #55070: Workpackages
Epic #54260: WP: FAL Missing Issues / Features / API
Story #54261: As an Extension-Developer I want to use FAL assets in my custom development
Add concept of a default storage
Status: | Resolved | Start date: | 2014-01-20 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Steffen Ritter | % Done: | 100% |
|
Category: | File Abstraction Layer (FAL) | Spent time: | 1.13 hour | |
Target version: | 6.2.0 | |||
TYPO3 Version: | 6.2 | Complexity: | medium | |
PHP Version: | 5.3 | Sprint Focus: |
Description
- default storage is exclusively
- is a substitute to previous /fileadmin/ directory
- storage model get additional "isDefaultStorage" flag (boolean)
- default storage can only exist once amongst all storages (unique)
- new method ResourceFactory::getDefaultStorage() resolves this storage
Subtasks
Related issues
Associated revisions
[TASK] Add possibility to resolve a default storage
Before FAL a default upload folder has been retrived by setting
$GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] . 'user_upload'.
With FAL this even could be placed on a remote system. Furthermore
we do not won't users to fiddle around with path like that anymore.
Each Storage already provides "getDefaultFolder" meant for uploads.
But still, if there are several storages, there is no way to figure
out which storage should be the default one for uploads, if it is
legacy code or just not configurable.
This patch introduces the concept of a default storage as a flag
which can be set within the storage record. The automatic creation
of /fileadmin/ - storage will have this flag already set.
Resolves: #55177
Releases: 6.2
Change-Id: I6684670c5acb023bc26596e9a55ca84bb5c41b40
Reviewed-on: https://review.typo3.org/26945
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
History
#1 Updated by Gerrit Code Review over 1 year ago
- Status changed from Accepted 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 https://review.typo3.org/26945
#2 Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26945
#3 Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26945
#4 Updated by Steffen Ritter over 1 year ago
- % Done changed from 0 to 70
- Estimated time set to 1.00
- Remaining (hours) set to 1.0
#5 Updated by Gerrit Code Review over 1 year ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26945
#6 Updated by Gerrit Code Review over 1 year ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26945
#7 Updated by Steffen Ritter over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 70 to 100
Applied in changeset 90a1c7cbee01e00a723fb0a9afad154e0d32f841.
#8 Updated by Steffen Ritter over 1 year ago
- Estimated time deleted (
1.00)