If you try to upload an image with a special character or with spaces the message: "File name must only contain alphanumeric characters and no spaces."
From the CMS we are migrating from I expect that the upload is successful. The former CMS would have a table that contained two fields. It would keep the original filename in tack in the Name field, and it would change the actual image file name, (it called it id) to a non spaced, no special character version. So that the user could see both, and rename both if desired. So I guess if possible I'm proposing a sort of separation so that the user uploading an image doesn't get frustrated having to rename 135 images because they have spaces or anything like that.
Joomla 3.x
Since it seems that the media manager simply interacts with a folder on the server, I'm guessing implementing such a feature would require more intensive database managing since you would need a place to store the image name and then actually rename the file on the server.
Are images that are in the image folder on the server automatically added to a database somewhere, are they only added if they are added through Joomla. If there is no table already then this feature would require such an implementation if it is desirable for the Joomla Project.
Wow, good, so something is already progressing on that part I'ld be glad to close this issue.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-24 15:47:30 |
Hi @Alofurry ,
With the recent commit (Buddhima@44d613a) to New Media manager, I have given the capability to upload images with non-alphanumeric and spaces in their names.
It basically removes those special characters from image file name but puts the original name as the default image title.
Thank you!
Hey Buddhima, I am not very up to speed on Github so I can't tell if your fork is a personal project or going to become part of Joomla?
Reason I ask is that to me the inability for users to upload images with spaces in their names literally makes me furious. Its exactly the kind of thing that technical people do all the time and which leaves users utterly dumbfounded and frustrated.
I appreciate that we cannot allow the files to be saved with the spaces (though there is discussion about that) but this should not be the users problem. On another forum I visited someone said 'surely its not too much to ask to ask users not to name their files with spaces in the names?' But that kind of attitude literally makes my blood boil. Us techies maybe able to remember stuff like that but users WILL NOT. If Facebook of Twitter or any successful website had this insane stipulation they would have never gotten off the ground from a sheer UX pov and Joomla having this fatal flaw basically means all of us designer/developers are condemned to utterly crap editing UX right from the start with nothing we can do about it (without hacking the core)
And to anyone who has issue with this, Wordpress manages it just fine, it just replaces the spaces with dashes, job done, nothing for the user to remember, no need for them to painstakingly go through every file name and rename them, just a sensible real world solution to a blindingly obvious problem...
So please if you have any sway over Joomla at all, PLEASE make them fix this ASAP
Hi @davidosullivan ,
I agree, and there's a valid point in your argument.
The commit mentioned in my previous comment is a bit older one and here's the latest change : Buddhima@28e0d02
Unfortunately, still that is not the final decision. It needs to be approved by various expertise.
As per previous comments, it seems they are going to fix this issue along with new media manager. Because currently no database is using to record image data & it is expected to have a way to keep original name (name with spaces and non-alphanumeric characters). But it is okay to submit a PR on this issue and get this done early.
Finally need to say that the project new media manager is not a personal project. It's a contribution to Joomla! CMS as an individual developer.
Thank You!
Labels |
Added:
?
|
I believe this is achievable with the proposed new media manager but as you correctly identify it is not a siimple change with the current media manager code as it does not interact with the database
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4914.