Home / Community & Support / Knowledge Base / RadControls for Silverlight / Upload / How to upload a file with a different name.

How to upload a file with a different name.

Article Info

Rating: 5

Article information

Article relates to

 RadUpload for Silverilght

Created by

 Ivan Efimov

Last modified

 March, 18, 2009

Last modified by

 


In order to change the name of an uploaded file you need to follow these steps:
  1. Create a simple upload application (for details, click here);
  2. Implement a counter for the number of uploaded files - see the uploadedFiles member in Page.xaml.cs file of the attached project;
  3. Implement the UploadStarted event handler - inside it initialize the uploadedFiles member with zero;
  4. Implement the FileUploadStarting event handler - inside it we set a new name for the uploaded file;
That's all!

Comments

If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!

Please Sign In to rate this article.