Sanitising of filenames adds an annoying status message on upload
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3563050. --> Reported by: [pameeela](https://www.drupal.org/user/1431110) Related to !743 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>At some point we enabled 'Replace whitespace with the replacement character' in the file settings. This results in a really annoying status message appearing every time you upload a file, including in the media widget modal.</p> <blockquote><p>Your upload has been renamed to {whatever-without-spaces}.</p></blockquote> <p>OK! Why do I need to know this?</p> <p><img src="https://www.drupal.org/files/issues/2025-12-14/Screenshot%202025-12-14%20at%202.04.01%E2%80%AFpm.png" alt=""></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Upload an image with spaces in the filename to any media field.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Suppress this message.</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>No more annoying message.</p> <h3 id="summary-data-model-changes">Configuration changes</h3> <p>N/A</p>
issue