PDF Upload
-
Hello Ever one: This article http://www.codeproject.com/aspnet/fileupload.asp[[^](http://www.codeproject.com/aspnet/fileupload.asp [^] "New Window")] works for .txt file and images but its not working for .PDF or .DOC or .XLS files, could someone please help me modify the code so I can upload .PDF Files also! Thanks..
-
Hello Ever one: This article http://www.codeproject.com/aspnet/fileupload.asp[[^](http://www.codeproject.com/aspnet/fileupload.asp [^] "New Window")] works for .txt file and images but its not working for .PDF or .DOC or .XLS files, could someone please help me modify the code so I can upload .PDF Files also! Thanks..
-
Hello Ever one: This article http://www.codeproject.com/aspnet/fileupload.asp[[^](http://www.codeproject.com/aspnet/fileupload.asp [^] "New Window")] works for .txt file and images but its not working for .PDF or .DOC or .XLS files, could someone please help me modify the code so I can upload .PDF Files also! Thanks..
ContentType – MIME type of uploaded file, i.e. “image/gif” Change that in the code to the type pdf or any other type you need. Hope this helps Al
-
ContentType – MIME type of uploaded file, i.e. “image/gif” Change that in the code to the type pdf or any other type you need. Hope this helps Al
Do you mean something like this:
row["FileName"] = sName; row["FileSize"] = buffer.Length; row["FileData"] = buffer; row["ContentType"] = image/pdf;
Thank you for your reply.
-
Do you mean something like this:
row["FileName"] = sName; row["FileSize"] = buffer.Length; row["FileData"] = buffer; row["ContentType"] = image/pdf;
Thank you for your reply.
Well yes and no, there is not type as image/pdf you need to use document/pdf I believe on top of my head. Al
-
Well yes and no, there is not type as image/pdf you need to use document/pdf I believe on top of my head. Al
Thanks, I got it working :-D
-
Thanks, I got it working :-D
Hope with my help ;-) Cheers Al