Using uploaded images as CSS background

I would like to use the setStyle() function specifically for background images.
Is there a way to link to the images that have been uploaded as images?

I can only seem to make this work reliably with fully qualified URLs and the code.org full path is pretty nasty to look at, especially after it is packed into a giant string of other CSS.

hello @greiber,

I am unsure if this is still unresolved but i may have some solution for you if you’d like to link uploaded images as <img> tag or some <a> tag
https://studio.code.org/projects/applab/25ecHgSwyqQrPq8ZwIhFrEO5fYk_r8cTzP_-6zeXwQ8
however this solution will need to be decided at the beginning of such a project since if you decided to switch to it halfway you’d need to basically redo all of the styling and html elements in the project as you will soon see

Best of luck

Varrience