Drag files instead of images from WKWebviewMBS to desktop

In WKWebview I show previews of files as images. When I drag the image to the desktop a png is written. How do I tell the WKWebview that I want to have a file written to the desktop instead?

Each session log icon represents a file.