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 RajputPosted Mar 13, 2015, 11:57 PM
go above link
change
'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
to
'fileExt': '*.pdf', this will show only pdf files when you browse files
Gowtham RajamanickamPosted Apr 6, 2015, 4:32 AM
Khargesh RajputPosted Apr 5, 2015, 8:24 AM
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
Riddhi ValechaPosted Apr 5, 2015, 5:57 AM
Can we check the size of file ... say upto 5mb or 10mb ??
If yes... how ??
Farhan ShariffPosted Mar 13, 2015, 11:42 AM
var res = pdf1.ShowDialog();
if (res == DialogResult.OK)
{
DocumentUNCPath.Text = pdf1.FileName;
}