Questions tagged [fal]

File Abstraction Layer for TYPO3

107 questions
2
votes
1 answer

Set uploadfolder in storage OR storage-ID via TCA to restrict access in Backend

Is it possible to set an uploadfolder in TCA for a field (type FAL)? I thought that is either possible by setting a relative path to "my" filestorage or by setting a filestorage-ID to the TCA-element. Currently all files are stored in…
simonhard
  • 29
  • 2
1
vote
2 answers

Typo3 : add file to FAL when it is not presente in sys_file

I have this situation I have a table in my db containing some file names in a field1 (eg field1: "my file.ext") NOTE: the filename does not necessarily pass a Typo3 "sanitizeFilename" check -> it may contain spaces " " or other characters that…
1
vote
1 answer

Generate TYPO3 cropVariants for images from CLI

Is there a way to trigger the generation or update of cropVariants for existing image relations? My use case: I want to make sure that images always obey a certain aspect ratio. Thus, I have defined a cropVariant called "myCropVariant" for images,…
moe2k
  • 13
  • 4
1
vote
1 answer

TYPO3 FAL in Flexform add DataProcessing

I got the same problem like this guy -> https://stackoverflow.com/questions/61383959/typo3-fal-in-flexform. So I used this answer but I have some problems to add the data processor. At the moment I render the Element like…
Julia
  • 35
  • 4
1
vote
0 answers

TYPO3 FAL Label for Edit Form

I wrote an extension for a slider. It all works well. My last problem is this: If I add an image in the list view, then the label appears with the HTML tags above. How can I customize the label or remove the tags? 'image' => [ 'exclude' =>…
180690
  • 181
  • 2
  • 13
1
vote
2 answers

How do I get uid of a File Reference Object in TYPO3?

I am trying to get a file through this code $f = $resourceFactory->getFileObject($uid); but the problem is the uid is a protected field in the file reference object, as seen below so I am not able to get the uid, and getUid() obviously wont work…
Huzaifa Mustafa
  • 262
  • 5
  • 18
1
vote
1 answer

TYPO3 FAL, files are missing, case sensative issue, how can I fix manually?

I have case sensitive problems in TYPO3 v 8.7 LTS. System is sometimes mocking that a file is missing. The error message is Oops, an error occurred! File /archiv/ABCD.pdf does not exist. Allthough the file is there. When I put the file in lowercase…
Denis
  • 11
  • 4
1
vote
2 answers

TYPO3: Extend FAL sys_file_reference with a new textfield

I'm just trying to extend the sys_file_reference table with a new textfield "copyright" just the normal extbase way. Worked like a charm, field shows up. But when I save a record with a sys_file_reference relation, it won't add the reference. It's…
Alex S.
  • 66
  • 8
1
vote
1 answer

TYPO3 uploads to FAL migratrion

is there any easy way to migrate TCA or Flexform fields for file uploads from type 'group' (upload directly to uploads folder) to 'inline' (FAL) and keep the already uploaded images?
mhirdes
  • 273
  • 2
  • 12
1
vote
2 answers

TYPO3 Extbase FAL - How to update file metadata (sys_file) from frontend controller

I have a frontend extensions where logged in users shall add/edit sys_file records. I try to update the file metadata like this (simplified): $uid = (int)$this->request->getArgument('file'); $resourceFactory =…
Garvin
  • 43
  • 6
1
vote
0 answers

Show File size in RTE Text in TYPO3 7.6

The extension ml_links is not supported anymore. Which is the recommended way to automatically display a file's size and type for links to files made in the RTE? I'm not referring to fluid templating for a FAL link, just regular RTE text that's…
Urs
  • 4,984
  • 7
  • 54
  • 116
1
vote
1 answer

FAL resource not accessible in fluid template - where to look?

In a custom extbase extension, we have an image field set up like this: Model /** * Returns the picture * * @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $picture */ public function getPicture() { return $this->picture; } /** *…
Urs
  • 4,984
  • 7
  • 54
  • 116
1
vote
1 answer

My localized image captions (from meta data) don't get loaded in the FE (just the default language)

I'm using TYPO3 6.2.27. We are using a custom FAL-Driver, which creates localized Meta-Data for the FAL-Records. But in the frontend we get only the meta data with the sys_language_uid 0 (for example in the caption). The database entries look fine.…
fvosberg
  • 677
  • 10
  • 30
1
vote
2 answers

How to get proper filename sanitizing on upload in TYPO3?

When I upload a badly (or "utf8-ly") named file in a fresh TYPO3 7.6 install, I get underscores instead of spelled out special characters. E.g. the filename Bräm!.png is sanitized to Bra__m_.png. I would expect Braem.png. The server locale looks…
Urs
  • 4,984
  • 7
  • 54
  • 116
1
vote
1 answer

How to search by advanced FAL metadata (tags)

As of https://forge.typo3.org/issues/69120, there is a file search field in the backend of TYPO3 7.6 LTS. I would also like to give editors the possibility to search the "tags" field from EXT:filemetadata; (how) is that possible in the backend?
Urs
  • 4,984
  • 7
  • 54
  • 116