handle the request upload the image