#108841Editor cannot preview a form if the editor has no permissions on a FileUpload field target folder
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 UID2and the relative pathsecureUploads/), 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 storage2:/. - However, when a backend user without permissions for the file storage
2:/clicks the Preview button in the Form Editor, anInsufficientFolderAccessPermissionsExceptionis 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
History 611
-
Josef Glatz changed subject
Editor can not preview a form if the editor has no permissions on a FileUpload field select optionEditor cannot preview a form if the editor has no permissions on a FileUpload field target folder description <span data-processor="relativetime" data-value="2026-02-03T11:18:52+00:00" > 02/03/26, 11:18 </span> -
Josef Glatz changed description <span data-processor="relativetime" data-value="2026-02-03T11:31:00+00:00" > 02/03/26, 11:31 </span>
-
Josef Glatz changed description <span data-processor="relativetime" data-value="2026-02-04T05:21:27+00:00" > 02/04/26, 05:21 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 93042 status
NewUnder Review <span data-processor="relativetime" data-value="2026-03-03T14:33:05+00:00" > 03/03/26, 14:33 </span> -
Gerrit Code Review pushed patch set 2 for main to change 93042 <span data-processor="relativetime" data-value="2026-03-03T18:44:20+00:00" > 03/03/26, 18:44 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 93050 <span data-processor="relativetime" data-value="2026-03-03T22:04:07+00:00" > 03/03/26, 22:04 </span>
-
Gerrit Code Review pushed patch set 2 for 13.4 to change 93050 <span data-processor="relativetime" data-value="2026-03-04T07:47:03+00:00" > 03/04/26, 07:47 </span>
-
Gerrit Code Review pushed patch set 3 for 13.4 to change 93050 <span data-processor="relativetime" data-value="2026-03-04T07:48:55+00:00" > 03/04/26, 07:48 </span>
-
Josua Vogel commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-03-04T13:15:09+00:00" > 03/04/26, 13:15 </span>Applied in changeset commit:939825ff6b1dfeb9729c5e2694bb933c54cacfb1.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-03-31T08:10:41+00:00" > 03/31/26, 08:10 </span>
Is it possible to implement a preview context which can than be used by the backend form module?