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 @@ -270,6 +270,7 @@ private function uploadValidator($file)
270270
271271 private function getNewName ($ file )
272272 {
273+ setlocale (LC_ALL , 'en_US.UTF-8 ' );
273274 $ new_file_name = $ this ->helper
274275 ->translateFromUtf8 (trim (pathinfo ($ file ->getClientOriginalName (), PATHINFO_FILENAME )));
275276
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