[TYPO3-mvc] Resolve file path from file:xx
Frans Saris
franssaris at gmail.com
Wed Jul 22 16:50:11 CEST 2015
Hi Sebastian,
Try
$fileObject =
$resourceFactory::getInstance()->retrieveFileOrFolderObject('file:123');
Gr. Frans
Op wo 22 jul. 2015 15:45 schreef Sebastian Zarges <
sebastian.zarges at ewikon.com>:
> Hi,
> thanks for the reply, but I haven't a object like $file, I just have the
> value "file:1234" (1234 = uid of the file in table sys_file).
> It seems, that I could not create a File-Object with the uid of a file.
>
> At the moment I just see the chance to get the path of the file through
> reading the field "identifier" in the db table "sys_file", but I think
> there must be a smarter way to get this infomation.
>
> Any ideas?
>
> Thanks in advance
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
More information about the TYPO3-project-typo3v4mvc
mailing list