We have moved to GitHub Issues
Created by Dan Booth 01 Oct 2014, 19:42:39 Updated by Claus Jensen 07 Nov 2016, 10:48:45Tags: Up For Grabs PR
When dragging and dropping files for upload on the created media items are given the name of the file. It would be much nicer if a bit of simple sanitisation was applied to "normalise" the name eg. For the name you would:
So if you uploaded a file called "my_amazing_kitten.jpg" it would be named "My Amazing Kitten". If you uploaded a file called "Some_AMAZING_dinosaurs-1.PDF" it would be named "Some Amazing Dinosaurs-1" etc.
Make the media item name "nice" since file names could be pretty ugly, we have string extensions to do much of this but we'll need:
All of this logic should exist in a string extensions method and be unit tested
There's notes in the Core code here: 726bef1edf2ee36b8cdb560fa61548671a793f69
I've updated this issue with implementation requirements above, we'll schedule this for 7.4.1 and hoping this can be a community update. Please discuss any implementation details below, thanks!
I would also suggest replacing - with a blank space e.g. my-amazing-kitten.jpg to "My Amazing Kitten"
Hi @firstname.lastname@example.org Any chance you have time to review these requirements and re-submit a PR or are you too busy at the moment?
Hi @email@example.com are you able to have a look at the above?
Pull request https://github.com/umbraco/Umbraco-CMS/pull/1582
sorry, not sure how I missed these messages. Think I worked on this during last years hackathon.
Ha, I am at this years hackathon!
so I see! well done with the fix :D
Priority: Up for grabs
Type: Feature (request)
Difficulty: Very Easy
Backwards Compatible: True
Fix Submitted: Pull request
Affected versions: 7.5.4
Due in version: