How to have a css background-image from form field?

You will need to modify the template twig file in order to get the image and use inline css to declare background, something like this:

{% set bg_img_url=page.media['yourimagename.jpg'].url() %}

<div style="background image: url('bg_img_url')"></div>