#97272Possibility to remove the "Select & upload files" button globally
Description
A small improvement when uploading an image directly from a content could be to remove the “Select & upload files” button since its functionality is already present in the popup of “Add image” button where the editor can also upload files. But in this popup the editor is somehow incentivized to choose the folder where to upload the file and so keeping the files in the archive better organized.
Screenshot%202022-03-30%20122251.jpg
Then a better place for the “Upload files” input in the popup should be at the top.
Screenshot%202022-03-30%20122957.jpg
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
Files 2
History 7
-
Christian Toffolo changed Related to #93528 <span data-processor="relativetime" data-value="2022-03-31T15:27:19+00:00" > 03/31/22, 15:27 </span>
-
Oliver Bartsch commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2022-04-01T10:11:52+00:00" > 04/01/22, 10:11 </span> -
Christian Toffolo commented and changed status
Needs FeedbackNew <span data-processor="relativetime" data-value="2022-04-02T10:39:44+00:00" > 04/02/22, 10:39 </span>Hi, thank you for indicate me the option. Unfortunately it solve my use case only partially.
It is possible to remove the “Select & upload files” button but it’s missing an option to move the “Upload Files” input at the top of the modal so the editor has it immediately available without having to look for it by scrolling in the case of a folder with many files.
Also I just realized that, by disabling option ‘fileByUrlAllowed’, the editor does not have the ability to add a file via url in the modal. It must necessarily go through the Filelist module thus interrupting the workflow.EDIT: here I am wrong, it is possible. -
Christian Toffolo commented <span data-processor="relativetime" data-value="2022-04-02T11:01:59+00:00" > 04/02/22, 11:01 </span>
Thinking about it better, in the modal, being that the fields to add a resource can be many (i.e.: new file; new folder; new file via url) rather than moving these fields at the top of the modal it would be better to have a button at the top that scrolls to the point where these fields are.
Another solution could be to move these fields to add resources in a new tab. Thus have in the modal a tab with the list of files already present and a tab to add files/folders.
-
Christian Toffolo commented <span data-processor="relativetime" data-value="2022-04-02T16:19:33+00:00" > 04/02/22, 16:19 </span>
I add that it is difficult to apply the ‘fileUploadAllowed = false’ option because the TCA of the tables to be overwritten are many and can change over time.
The reflection I propose is to ask ourselves whether to continue to give the editor the possibility to quickly upload a file to the detriment of the order in the archive or to remove this possibility, hoping that the editor is thus more orderly selecting the upload folder.
The human being is by evolution lazy (to save energy) and sometimes needs to be forced not to be.
A one-size-fits-all solution might be a global option to disable these buttons in any field in any table.
-
Christian Ludwig commented and changed subject
Remove the "Select & upload files" button in IRREPossibility to remove the "Select & upload files" button globally <span data-processor="relativetime" data-value="2023-09-07T15:24:49+00:00" > 09/07/23, 15:24 </span>I appreciate the possibility to allow or disallow file uploads or files by url globally (to override all column specific fileUploadAllowed and fileByUrlAllowed settings in the TCA at once).
In my opinion, this is more of a global decision made by the client, whether to force the editor to store media files in an orderly fashion or whether to rather prefer the ability to add files quickly.
There are few to no use cases for setting these options for individual columns in our clientele.
@ctoffolo I changed the title of the issue because it is not only related to IRRE
-
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-01T17:53:51+00:00" > 11/01/26, 17:53 </span>Checked on main (15.0.0-dev). The buttons can be removed globally without a new option:
setup.override.edit_docModuleUpload = 0
in user TSconfig (Configuration/user.tsconfig of a site package for all users, or per group) hides “Select & upload files” and “Add media by URL” in all file fields. Uploading in the file browser modal stays available. Verified that the override wins over a stored user setting; the button rendering was read in FilesControlContainer, not tested in a browser.
To hide only the upload button in all fields, use a listener for CustomFileSelectorsEvent (#105649, since 14.2). Per field, use appearance.fileUploadAllowed in TCA (#84250) or TCEFORM..<field>.config.appearance.fileUploadAllowed = 0. <p>The upload control in the modal is still below the file list, but since #110882 (main) files can be dropped anywhere on the file browser or pasted, without scrolling.</p> <p>Closing for that reason. If a dedicated core option for hiding only one of the two buttons is still needed, or the upload control should move to the top, please open a new issue with the use case.</p></field>
Hi, TYPO3 already provides corresponding configuration options, see: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/10.1/Feature-84250-SeparatelyEnableDisableAddMediaByURLAndSelectUploadFiles.html and https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Inline/Properties/Appearance.html.
Does this solve your use case?