fixed file upload error, moving temp_file to destination by using 'move_uploaded_file' instead of 'copy'