How to Check the internal file content to upload only PDF files using upload control.
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hi CP, I am using upload control in asp.net . in that i am uploading only .pdf files. In java script, i wrote the code to upload only pdf files. But user can change the extension and upload the .txt or any files as pdf .This should not be done. How to check whether the file is PDF Only ? in vb.net If he changes the extension of any file and he can upload i have to display the message as "Please upload the original PDF Files" Thanks , Ram.