if (!@move_uploaded_file($source, $destpath . $new_iv_name)) {
//flag failure
//$pass_copy = ‘failed’;
throw new Exception(“There was a problem uploading Display Picture”);
}
There are something wrong with your move_uploaded_file() function.
Find that function from your included/required files.
Or did you try to upload the picture from HTTPS URL?
Maybe related to this problem:
& you are using file_get_contents() function like this: