Issue Bug Closed

#108841Editor cannot preview a form if the editor has no permissions on a FileUpload field target folder

Josef Glatz 02/03/26, 11:14 updated 03/31/26, 08:10

Description

Actual scenario

  • A backend user needs access to the file mount where the form definition is stored; otherwise, the editor cannot edit the form. This works as expected.
  • If an integrator modifies the configuration FileUpload.formEditor.editors.400.selectOptions (docs) and adds the identifier of another file mount (e.g. a local file storage with UID 2 and the relative path secureUploads/), a TYPO3 backend administrator can preview the form in the Form Editor backend module without any issues.
  • A non-admin backend editor who has access to the file storage containing the form definitions can edit the form and add a FileUpload field with the target folder set to 2:/. This works even though the editor has no explicit permissions for the file storage 2:/.
  • However, when a backend user without permissions for the file storage 2:/ clicks the Preview button in the Form Editor, an InsufficientFolderAccessPermissionsException is thrown.

Why this scenario occurs

For GDPR and data protection reasons, non-admin editors must not have access to uploaded files created via forms.

Using a dedicated “secure upload” file storage for typo3/cms-form, which is only accessible to administrators, is effectively the only way to restrict access to uploaded artifacts. These files are typically stored only temporarily until the form is submitted and processed (e.g. sent via email or handled by a custom processor).

Expected behavior / possible solution

Is it possible to decouple the form preview functionality from the access permissions of FileUpload target folders?

  • The form preview should not require access permissions for file storages that are only used as FileUpload targets.
  • Alternatively, the preview could ignore or disable non-functional form elements (such as FileUpload) if the current backend user lacks the required permissions.

This would allow editors to preview forms safely without granting them access to sensitive upload storages.

Reviews 2