User tests: Successful: Unsuccessful:
Pull Request for Issue #23249
Adding hyphens to allowed characters in file names uploaded by drag and drop in TinyMCE.
Normalizing file names in direct com_media upload files to fit with the drag and drop format:
the name of a file should not contain any period
. before the extension.
(real original name of these files are of the type:
Screen Shot 2018-12-09 at 07.43.58.png on my Mac)
This is nicely taken care of when drag and drop as periods are replaced by nothing (after adding the hyphen in the code above).
BUT not in normal upload where I get:
Also, spaces are replaced by hyphens in one case and by underscores in the other.
Upload a file (usually an image) containing spaces and periods in other place than before the extension, both using com_media and drag and drop.
An image which name on the desktop is
Screen Shot 2018-12-09 at 07.43.58.png
will be uploaded to Joomla as
|Status||Pending||⇒||Ready to Commit|
|Status||Ready to Commit||⇒||Fixed in Code Base|
|Closed_Date||0000-00-00 00:00:00||⇒||2018-12-27 19:02:51|