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

Added by Oliver Hader almost 6 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2014-01-20
Due date:
% Done:

100%

TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
medium
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

Task #55187: Allow unique evaulation for TCA type 'check'ClosedOliver Hader


Related issues

Blocks TYPO3 Core - Bug #53552: File handling in import/export module is broken Closed 2013-11-12

Associated revisions

Revision 90a1c7cb (diff)
Added by Steffen Ritter almost 6 years ago

[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 almost 6 years 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 almost 6 years 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 almost 6 years 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 almost 6 years ago

  • % Done changed from 0 to 70
  • Estimated time set to 1.00 h
  • translation missing: en.field_remaining_hours set to 1.0

#5 Updated by Gerrit Code Review almost 6 years 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 almost 6 years 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 almost 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 70 to 100

#8 Updated by Steffen Ritter over 5 years ago

  • Estimated time deleted (1.00 h)

#9 Updated by Riccardo De Contardi about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF