Which mod does this belong to? Don't recall any upload program which used an "upload.html" file.
If you change that code to asp and response.write format, you could start with something like this. I'm assuming the image name you want displayed is the background image? If so, that name is probably in a field in the database already. So you'd change the (CONDITIONS) to say something like this ENCODED_IMAGE = '" & trim(Request.Form("imagecode")) & "'