Project

General

Profile

Actions

Bug #64621

closed

FAL relation could be created even if the filetype is not allowed for the TCA field

Added by Sascha Egerer almost 10 years ago. Updated about 6 years ago.

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

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
hard
Is Regression:
No
Sprint Focus:

Description

It is possible to create a FAL file relation even if the file extension is not allowed for this field.

Reproduce:
  1. Create a new image element
  2. Modify the "Add Image" button (using firebug e.g.) from something like
    setFormValueOpenBrowser('file', '|||gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai|data-38-tt_content-173-image-sys_file_reference|inline.checkUniqueElement||inline.importElement'); return false;
    to
    setFormValueOpenBrowser('file', '||||data-38-tt_content-173-image-sys_file_reference|inline.checkUniqueElement||inline.importElement'); return false;
  3. Click on open Image. You'll now be able to select any kind of file.
  4. select a non image file
  5. The file is visually added to the content element
  6. Save the record

Result:
You won't see that the records has been added what is the expected behavior.
But it is added. The relation is created in the database but not displayed in TCA as the file extension is not allowed.

Expected Result:
The relation should never be created by checking the file extension before creating the relation.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #64619: Different behavior of allowed filename for adminsClosed2015-01-29

Actions
Actions

Also available in: Atom PDF