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

inconsistency in documentation

1 Answer 43 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 09 Nov 2010, 01:07 PM
Hello to telerik.

I found this different information about client side validation extension on RadUpload.

this is saying arguments.IsValid = <%= RadUpload1.ClientID %>.ValidateExtensions(); missing $find() function

and this is saying arguments.IsValid = $find('<%= RadUpload1.ClientID %>').validateExtensions();

so I thing there should be find function.

But whats worries me is when I do this: var fileInputs = $find(fileuploadId).GetFileInputs(); I get Error: $find(fileuploadId).GetFileInputs is not a function. And variable fileuploadId is correct because validateExtensions on that object works fine...

I want to check if there is at least one file selected (on client). Do you know about better approach? Thanks.


1 Answer, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 09 Nov 2010, 02:32 PM
Hello Jan,

It's getFileInputs(), not GetFileInputs(). Javascript is case sensitive.

I hope that helps.
Tags
Upload (Obsolete)
Asked by
Jan
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or