use multipart module instead of body parser because of some deprication. photo uploaded successfully