Parentheses in uploaded image file names

2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 10, 2011   (RSS)

Hello,

I have a request for a future release, assuming I'm not missing an obvious solution.

We regularly use files clients upload via CMSB as background images of elements on their site. Unfortunately, when users upload images that have parentheses in the file name, the code breaks because it end the CSS syntax

For example:
<div class="someclass" style="background-image:url(/admin/uploads/thumb/Sheffield-(10).jpg)">

The ")" at the end of "Sheffield-(10).jpg" causes the background-image declaration to prematurely end, resulting in an invalid background image; aka no background image.

I'd like to request that either by default, or by election in the section editor, that parentheses be automatically removed from upload file names.

When the issues arises now, we just direct clients to be aware of the file names before they upload. Clearly not a critical problem, but something that would be helpful to us.

Thanks for listening.
Dennis.