we use the TYPO3 Flow 2.3 integrated Resource object to upload any kind of files in our project. The definition in our File
object is:
/**
* @var \TYPO3\Flow\Resource\Resource
* @ORM\ManyToOne
*/
protected $originalresource;
And the fluid call goes like:
<a class="filelink" data-icon="{file.filetype}" href="{f:uri.resource(resource: file.originalresource)}" target="_blank">{file.name}</a>
Everything in this constellation works fine until a user uploads a file without ending like hosts
. The server says Not Found
in the regular Apache error style. Are files without endings supported or not? Why does this happen?
The Setting is:
TYPO3:
Flow:
resource:
storages:
defaultPersistentResourcesStorage:
storage: 'TYPO3\Flow\Resource\Storage\WritableFileSystemStorage'
storageOptions:
path: '%FLOW_PATH_DATA%Persistent/Resources/'
targets:
localWebDirectoryPersistentResourcesTarget:
target: 'TYPO3\Flow\Resource\Target\FileSystemSymlinkTarget'
targetOptions:
path: '%FLOW_PATH_WEB%_Resources/Persistent/'
baseUri: '_Resources/Persistent/'
And the created symbolic link for the hosts
file in _Resources/Persistent/
is named with the hash and then a dot without file ending pointing the the actual file. The actual file exists.