Fixed side effect bug for ftp photo upload enhancement.