Issue Bug Closed

#93501FileDump return an image instead of pdf

Maxime Lafontaine 02/12/21, 17:01 updated 03/02/21, 20:15

Description

Hi.

I’m migrating an old site to TYPO3 v10 (from v7) and I have the fileadmin as not accessible publicly. That create the links to files as /index.php?eID=dumpFile&t=f&f=18151&token=***.

It was working fine before. A link to a pdf would show the pdf.
In v10 the working of the class has change. The file is proccess to resize or crop. So it can only return image…

https://github.com/TYPO3/TYPO3.CMS/blame/10.4/typo3/sysext/core/Classes/Controller/FileDumpController.php#L112

It probably correct in some case, but it do no work in this (link in the rte to a pdf file in a non-public File Storage).

Maybe it should validate if it is an image or not before process it? I’m not sure of the solution, but this is a problem.

Thanks.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.