(doc-view-insert-image): Do something if the image is missing. (doc-view-mode): Don't use file-remote-p.
Attach a file by drag & drop or click to upload