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

Uploading Files - Copy Files To Another Location

2 Answers 74 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Conor Morrissey
Top achievements
Rank 1
Conor Morrissey asked on 25 Oct 2010, 04:00 PM
Hi,

When uploading files using RadEditor, is it possible to make a copy of the image in another folder location using the FileUpload event?

For example I use the image manager to upload "Image1.jpg"... it saves to C:\directory1... I would like to make an exact copy in C:\directory2.

Thanks,
Chris.

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Oct 2010, 04:11 PM
Hi Chris,

What you can do is to implement a FileSystemContentProvider and save the uploaded file at the desired location by overriding the StoreFile method. The following KB article shows you how to rename the uploaded images: Giving the uploaded files unique names. You can use it as a base to proceed with your implementation.

Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Conor Morrissey
Top achievements
Rank 1
answered on 25 Oct 2010, 04:36 PM
Thanks... got it working! You're awesome!
Tags
Editor
Asked by
Conor Morrissey
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Conor Morrissey
Top achievements
Rank 1
Share this question
or