Added serverside code tp process uploaded image