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

Filter Uploade File Type

1 Answer 62 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ching-Yen
Top achievements
Rank 1
Ching-Yen asked on 24 Apr 2008, 03:30 PM
Hi,

I noticed that we can actually limit the file type being uploaded when using the RAD Upload. But, I think it's funny that the tool will "upload" the entire file, then only prompt user the file is not supported. Means that let say, the user is uploading a 500MB file, they need to wait until the file fully uploaded, then only they could realized the format is not supported.

Is that any possible way to prompt the user before it start the uploading? and Direct skip it if it's not valid?

Please advice.

1 Answer, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 25 Apr 2008, 09:03 AM
Hello Ching,

If you want to validate the file extensions of the selected files for uploading before the uploaded process starts you can use client-side validation. Please, refer to this help article which describes how to achieve client-side validation using the validateExtensions() method and provides a sample code snippet. I suggest you also take a look at the Client-side Validation online example.

If you have other questions, do contact us again.

Best regards,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Upload (Obsolete)
Asked by
Ching-Yen
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Share this question
or