I am wondering if there is a way to create a web application that allows the user to attach a raster image file such as a jpg or jpeg and download a vector image with ImageGraphics. I have figured out everything except how to let the user download the output of ImageGraphics to their computer. I have searched "Download" in the documentation center and I wondering if there is a way to create a button that will download the output file if they click on the button, similar to the function ClickToCopy. I do know that I can create a separate cloud expression link and then that will have a download button for make my own copy but I am wondering if there is a way for something such as ClickToDownload without redirecting.
Is there a way to make downloading the file optional?
I tried this and it works.
I also tried CloudPut and Manipulate.
I tried
CloudDeploy[ FormFunction[{"image" -> "Image"}, Export[File@"image.svg", ImageGraphics[#image], "SVG"] &]]
but I can't get it to work.
Does Export do what you need?