---
title: "Save As Dialog Box Not Coming"  
description: "Save As Dialog Box Not Coming"  
author: "Deepak Srivastava"  
published: 2018-01-08  
updated: 2018-01-08  
canonical: https://www.mindstick.com/forum/34419/save-as-dialog-box-not-coming  
category: "node.js"  
tags: ["node js"]  
reading_time: 1 minute  

---

# Save As Dialog Box Not Coming

Hello,

I am using the same code [as mentioned](https://answers.mindstick.com/qa/38307/bring-out-the-significance-of-the-terms-sovereign-democratic-republic-as-mentioned-in-the-preamble) above. I am able to write [PDF file](https://www.mindstick.com/forum/572/pdf-file-download-in-zip-file-in-mvc-4) in PDF folder but it [never](https://yourviews.mindstick.com/view/290/zoos-prisons-for-beings-who-have-never-committed-a-crime) open save as [dialog box](https://www.mindstick.com/forum/34699/create-alert-dialog-box-in-android). I want to [download PDF](https://www.mindstick.com/forum/34170/download-pdf-in-php) file on [client](https://www.mindstick.com/articles/23198/3-steps-to-ensure-that-your-client-portal-is-impeccable) machine. Following is the code i am using :

doc.pipe( fs.createWriteStream(path.resolve(".")+'/PDF/'+filename+'.pdf') );

res.download(path.resolve(".")+'/PDF/'+filename+'.pdf'); // it download this file

console.log(path.resolve(".")+'/PDF/'+filename+'.pdf');

doc.end(); // [document](https://www.mindstick.com/articles/328642/what-to-consider-while-choosing-a-software-documentation-tool) end by the end [method](https://www.mindstick.com/forum/166/webservice-method)

Please reply ASAP

\

\


---

Original Source: https://www.mindstick.com/forum/34419/save-as-dialog-box-not-coming

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
