Project

General

Profile

Actions

Bug #88238

closed

ext:form predefined mime types are always set

Added by Ralf Zimmermann almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-04-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint

Description

The ext:form setup contains some predefined mime types for the elements "FileUpload" and "ImageUpload"

Such predefined values are used as starting values while the form element is factorized:

later on, the values from the form definition will be overlayed (https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/form/Classes/Domain/Model/FormElements/AbstractFormElement.php#L148):

A form definition like this

type: Form
identifier: test-1
label: test
prototypeName: standard
renderables:
  -
    type: Page
    identifier: page-1
    label: Step
    renderables:
      -
        type: FileUpload
        identifier: fileupload-1
        label: 'File upload'
        properties:
          saveToFileMount: '1:/user_upload/'
          allowedMimeTypes:
            - application/pdf

ends up in a form element like this

        type: FileUpload
        identifier: fileupload-1
        label: 'File upload'
        properties:
          saveToFileMount: '1:/user_upload/'
          allowedMimeTypes:
            - application/msword
            - application/vnd.openxmlformats-officedocument.wordprocessingml.document
            - application/vnd.oasis.opendocument.text
            - application/pdf

We need to remove the predefined mime types from the ext:form setup-


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #90188: Re-implement strict mimetype validationClosed2020-01-24

Actions
Related to TYPO3 Core - Bug #92309: Missing feature flag processing/checkClosedMathias Brodala2020-09-15

Actions
Related to TYPO3 Core - Task #94871: Remove feature flag and related codeClosedMathias Brodala2021-08-13

Actions
Actions

Also available in: Atom PDF