Hi..
Requirement -
Option - 1
Take FileUpload control.
Click on "Browse" button.
User should be able to select only pdf files and not any other extension.
Eg - If the file on which the pointer(mouse) is there, is pdf file, it should be selectable.
Else, that file should not be selectable.
Drag and Drop selected multiple pdf files.
Upload them.
Option - 2
Take FileUpload control.
Click on "Browse" button.
User should be able to select only pdf files and not any other extension.
Eg - If the file on which the pointer(mouse) is there, is pdf file, it should be selectable.
Else, that file should not be selectable.
Upload these selected pdf files.
----------------
I tried but failed.... PLEASE HELP !!! Its really urgent and important...
------
We are not using telerik controls...
Loading

Khargesh RajputRank #616 · 3.9K reputationPosted Mar 13, 2015, 7:57 PM EDT
go above link
change
'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
to
'fileExt': '*.pdf', this will show only pdf files when you browse files
Farhan ShariffRank #2,004 · 725 reputationPosted Mar 13, 2015, 7:42 AM EDT
pdf1.Filter = "PDF Files|*.pdf"if (res == DialogResult.OK)
{
DocumentUNCPath.Text = pdf1.FileName;
}
Riddhi ValechaRank #794 · 2.9K reputationPosted Apr 5, 2015, 1:57 AM EDT
Can we check the size of file ... say upto 5mb or 10mb ??
If yes... how ??
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 5, 2015, 4:24 AM EDT
Do you want to.validate. that more than.10mb file should.not be uplaod then write auto.false in script and and set message while.checking if fileupload.file.lengh>10240 then return validation message
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 6, 2015, 12:32 AM EDT