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

[Solved] Uploading files to server.

1 Answer 109 Views
Editor
This is a migrated thread and some comments may be shown as answers.
pmoney pmoney
Top achievements
Rank 1
pmoney pmoney asked on 08 Jan 2010, 03:37 PM
Hey I'm trying to make the Editor upload a selected file to two different places on the server.
So the file will exsist in two different places on the server, the two directories will be the same at all times.

For example, I already have the ImageManager.UploadPaths set in the codebehind but I need to set this to two directories instead of just one.
Can someone help with this please???
Thanks!

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Jan 2010, 03:57 PM
Hi Pmoney,

Please, see the following KB article which provides guidance how to implement your own FileSystemContentProvider and override the StoreFile function which is called when saving the files to the server: Retriving the size of the uploaded file(s) and restricting file upload.

What you should do is to override the StoreFile function and save the uploaded file in the desired two folders.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
pmoney pmoney
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or