$(function() {
$('#<%=PhotoUpload.ClientID %>').change(function() {
var fileExtension = ['jpeg', 'jpg', 'png', 'gif', 'bmp'];
if ($.inArray($(this).val().split('.').pop().toLowerCase(), fileExtension) == -1) {
alert("Only '.jpeg','.jpg', '.png', '.gif', '.bmp' formats are allowed.");
}
})
})
but after displaying alert message when i click ok fileupload control takes that file please help me
Parveen SiwachPosted Jun 12, 2013, 5:32 AM
try this code:
This may solve your problem.
prathyushaPosted Jun 13, 2013, 1:53 AM