I am creating an app that involves letting the user import and export photos. I believe I have importing worked out fine using
<input type="file" />
but I cannot find a way to create an export button that functions in a similar way. As in, it brings up the directory listing as lets the user choose where to save the picture that is currently being displayed.
<a href="downloadImage.php?img=pathtoimage">download image</a>and havedownloadImage.phpreturn the image with the attachment header forcing a download.application/octet-streamand then browser will be force to download.