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

RadUpload FileExists Not Firing

2 Answers 111 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 19 Nov 2008, 03:37 PM
Hello,

I'm using a RadUpload with an external button to trigger the upload, as I see in the demos.  For some reason, the FIleExists event isn't firing when the page posts back...  I was trying to use the ProgressManager and ProgressArea to display current project, and ended up using the standard FileUpload control in conjunction with the RadProgressContext to achieve this.  RadUpload wouldn't work for me.

Can anyone post an example?  I wasn't able to successfully replicate this using the Demos on this site; the demo's example didn't work for me.  I did set the ControlObjectsVisibility="None" and set the InitialFileInputsCount ans MaxFileInputsCount to 1.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Erjan Gavalji
Telerik team
answered on 20 Nov 2008, 09:59 AM
Hi Brian,

Did you set a value to the TargetFolder or TargetPhysicalFolder properties of RadUpload? The FileExists event is triggered when RadUpload is configured to save the files automatically and a file with that name already exists in the target folder. In other words, the FileExists event is used to help avoid information loss.

Saving the files by code should be done in the button click event using the SaveAs method.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brian Mains
Top achievements
Rank 1
answered on 24 Nov 2008, 02:27 PM
I didn't have a file already existing in the folder; I didn't think that was the purpose of the event; didn't realize that.  Thanks.
Tags
Upload (Obsolete)
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Brian Mains
Top achievements
Rank 1
Share this question
or