This is a migrated thread and some comments may be shown as answers.

Alert supported extensions

1 Answer 31 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Karl Ranville
Top achievements
Rank 1
Karl Ranville asked on 24 Apr 2013, 09:35 AM
Hi,

I want to alert the allowed file extension when the user try to upload files of unsupported extensions. Please help soon.. Urgent requirement.

Thanks for reply in advance,
K.R

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Apr 2013, 10:34 AM
Hi,

Please try the following JavaScript in the OnClientFileSelected client event of the RadUpload.

JavaScript:
if (!sender.isExtensionValid(eventArgs.get_fileInputField().value)) {
    alert("Supported File Extensions are " + sender._allowedFileExtensions);
}

Thanks,
Shinu
Tags
Upload (Obsolete)
Asked by
Karl Ranville
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or