use window.saveAs to save shared file to disk after receiving users confirmation