Minor modification to support the multipart post requests. It can now handle 'update_with_media' requests