control the upload detail_photo logic
set session nil
config the server respondse