2...when i upload docx file it is successfully uploaded but not downloaded...give me solution can i download docx file from same code..
plese reply fast....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted May 20, 2013, 11:39 PM
hi,
in the first case you have to specify content type to "application/pdf" and also content-disposition to "inline;filename=test.pdf"
please refer following link it might help you.
http://www.aspdotnet-suresh.com/2012/11/aspnet-open-pdf-file-in-web-browser.html
In second case your content type must be "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
are you getting any error to down load file?