$returnPathToImage]); } else { // Notify editor that the upload failed header('HTTP/1.1 500 Server Error'); }