I have a problem with the fact that I use the move_uploaded_file() function to upload files and some files named in Arabic, so I searched for this problem but still haven't answered. I used the meta tag and I used Base64 encoding and everything else. Don't work. What is the solution?
<?php $data_name=$_POST['name']; $name=base64_encode($_FILES['file']['name']); $location="../Files/".$course_name."/"; $tmp_name=$_FILES['file']['tmp_name']; if(move_uploaded_file($tmp_name, $location.$name)) echo"OK"; ?>
source share