RadUpload FileExists Not Firing

Thread is closed for posting
3 posts, 1 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 19 Nov 2008 Link to this post

    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. Answer
    Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 20 Nov 2008 Link to this post

    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.
  3. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 24 Nov 2008 Link to this post

    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.
Back to Top