File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ public function config($key)
4646 */
4747 public function getNameFromPath ($ path )
4848 {
49+ setlocale (LC_ALL , 'en_US.UTF-8 ' );
4950 return pathinfo ($ path , PATHINFO_BASENAME );
5051 }
5152
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ private function uploadValidator($file)
277277
278278 private function getNewName ($ file )
279279 {
280+ setlocale (LC_ALL , 'en_US.UTF-8 ' );
280281 $ new_file_name = $ this ->helper
281282 ->translateFromUtf8 (trim (pathinfo ($ file ->getClientOriginalName (), PATHINFO_FILENAME )));
282283
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ public function makeDirectory()
6666
6767 public function extension ()
6868 {
69+ setlocale (LC_ALL , 'en_US.UTF-8 ' );
6970 return pathinfo ($ this ->path , PATHINFO_EXTENSION );
7071 }
7172}
You can’t perform that action at this time.
0 commit comments