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

Can RadUpload change the local filename on upload?

2 Answers 107 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 09 Jun 2012, 05:54 PM
Hello,

I was wondering if the RadUpload control can change the local filename (on both Win and Mac). I can see many forum topics describing how to change the name of the uploaded file, but I need to change the local filename as well. Is it possible through this control?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Lancelot
Top achievements
Rank 1
answered on 12 Jun 2012, 09:11 PM
Hi Josh,

he RadUpload control offers you several events to which you can build an event handler to contain your method of changing the local file name change. Here is a list of the events:

  • FileTooLarge, FileCountExceeded, UploadSizeExceeded - these events can get triggered if some of the selected files exceed the predefined criteria.
  • FilesSelected - raises when the user has selected files from the browse dialog window. This is the first of the RadUpload specific events that can be triggered by the actions of the user.
  • UploadStarted - raises when the user clicks the Upload button.
  • FileUploadStarting - raises during the upload of each file.
  • FileUploadFailed, ProgressChanged, FileUploadPaused, FileUploadResumed, FileUploadCanceled - these events can be triggered in different order, depending on the user actions.
  • FileUploaded - raises when the file has been fully uploaded.
  • UploadFinished - raises when all files in the list have been processed, no matter this has been successfully done or not.

  • You need to just figure out when the best time would be for you to make the change in your circumstances. This link will bring you to the documentation on the events I jsut mention.

    I hope this helps, Good Luck!

    Lancelot
    0
    Josh
    Top achievements
    Rank 1
    answered on 13 Jun 2012, 03:43 AM
    Awesome! Thanks for the info Lancelot.
    Tags
    Upload
    Asked by
    Josh
    Top achievements
    Rank 1
    Answers by
    Lancelot
    Top achievements
    Rank 1
    Josh
    Top achievements
    Rank 1
    Share this question
    or