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

[Solved] File uploads before form is validated

1 Answer 92 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 19 Apr 2009, 07:25 PM

Hi

I have a RadUpload as part of a form which contain related RadTextBoxes (title and date etc)
to collect input that is to be saved with the file.

On the page there are regular asp.net validators for the text boxes, with the suggested custom validator
for the upload control.

The validators do their stuff on button click, but as soon as the upload control has a file selected
the upload goes ahead, even though the other fields are not valid and still showing their error messages.

How can I (client side) prevent the upload taking place until the whole form is valid?
I think I am missing a simple trick here!

Thanks

Clive



1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 20 Apr 2009, 09:01 AM
Hello Clive Hoggar,

This is very strange and shouldn't have happened. By default RadUpload does not start uploading files prior clicking a submit button on the page. Could you reproduce the problem in some of our online examples? If not I suggest you open a support ticket and attach your page there.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or