Open-Manager icon indicating copy to clipboard operation
Open-Manager copied to clipboard

There is problem when Uploading files with Capital letters.

Open krassswr opened this issue 7 years ago • 0 comments

The problem is when upload files with capital letters in names the original file is uploaded as is... but thumbnail is with low case and then the "Browse" function search for file with same name as thumbnail... which is not correct.

Index: public_html/resources/admin/assets/lib/tinymce/plugins/openmanager/php/fileactions.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- public_html/resources/admin/assets/lib/tinymce/plugins/openmanager/php/fileactions.php	(revision 0878b50ed0a7ab47f53ebb83f7584c7a5817710c)
+++ public_html/resources/admin/assets/lib/tinymce/plugins/openmanager/php/fileactions.php	(revision )
@@ -68,8 +68,8 @@
 						}
 					}
 					//set the desired destination filename
-					$destination = $uploadfolder.$mediafolder.$name;
-					$reldestination = $reluploadfolder.$mediafolder.$name;
+					$destination = $uploadfolder.$mediafolder.$filename.".".$fileext;
+					$reldestination = $reluploadfolder.$mediafolder.$filename.".".$fileext;
 				}
 				else
 				{//then we are uploading an image
@@ -97,7 +97,7 @@
 					}
 					
 					//set the desired destination filename
-					$destination = $uploadfolder.$imagesfolder.$name;
+					$destination = $uploadfolder.$imagesfolder.$filename.".".$fileext;
 					
 					//now check for the existence of a file at the destination, if it exists we need to change the filename
 					if(file_exists($destination))

krassswr avatar Nov 16 '17 14:11 krassswr