Im using the below code to move a uploaded file into a location in server.
if( $_FILES)
move_uploaded_file($_FILES['newfile']['tmp_name'][0], "uploads".DIRECTORY_SEPARATOR."jersey".DIRECTORY_SEPARATOR.$jersey_id.DIRECTORY_SEPARATOR."jersey_logo_".$_FILES['newfile']['name'][0]);
The above code works fine, when i use browser in my pc. But the same fails when using mobile browser's camera and files selected from camera folder and the same works if files are selected from other folders.
what will be the reason?