Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am uploaded a pdf file by using folder browser dialog in asp.net now i wand to download that pdf file saved in folder in asp.net but its showing me error but at same time .docx file easily downloaded
Posted
Comments
KaushalJB 19-Jun-14 5:18am    
Put your applied code here ....
Ranjeet Patel 19-Jun-14 5:36am    
What error you are getting..? If possible please put you code snippets... that might help.
Thanks7872 19-Jun-14 5:38am    
And we are suppose to guess the error and the code?

hi,
have you added MISE type for PDF in your code??
 
Share this answer
 
Comments
VICK 20-Jun-14 0:50am    
Google even failed to show what is meant by MISE Type.. :(
You can have a look at the following link which generally describes that how to download a file on a button click from a folder.

Download a file on Button Click

Further you can change the content Type as per you requirement to make this code work for different file types.

Further for the list of Content/MIME Types.

You can have a look at this link.

List of Content Types.


and if we talk to the point.

You have to change the content type to
application/pdf
for PDF download.

Hoe it will help. :)
 
Share this answer
 
Comments
VICK 20-Jun-14 0:49am    
Do not forget to up vote the solution if it helps you... :D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900