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

FTP Uploaded files

3 Answers 192 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sander Wijnen
Top achievements
Rank 1
Sander Wijnen asked on 21 Dec 2011, 02:21 PM
Hi,

Is there an option to FTP uploaded files to another website.
Since we've put the frontend of our CMS at webhosting and Backend on the local webserver, we need to FTP images uploaded by moderators to the actual website. We can do this at the Article Save, but maybe there is an option for it inside the editor.

Can someone help?

With regards,

Sander Wijnen
WNS Development (The Netherlands)

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 21 Dec 2011, 06:39 PM
Hi Sander,

I am not quite sure I understand the exact scenario. If you want to access images (insert, upload, delete, etc) located on a remote FTP server from the RadEditor's ImageManager dialog you need to implement a custom content provider to the dialog. Please review the following demo for more information on the subject:
Editor / Custom File Dialogs Content Provider

Also, an example of a FTP content provider is available in the following KB article:
Connecting the RadFileExplorer to a FTP filesystem

Regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Sander Wijnen
Top achievements
Rank 1
answered on 22 Dec 2011, 09:28 AM
Sorry for not being clearer.

We split our front- en backend website's. So when a moderator edits an article and uploads an image, they are saved on the backend website. We now have to move the image to the frontend (by FTP).

In the telerik radeditor for asp.net there is the option "file-upload", but that's at a point when the image isn't saved on the backend yet.
We wonder if there's an option to FTP the image, when the file-upload is completed.

We now fill  a session variable in the file-upload function and FTP-upload it on the save of the article, but maybe there's another option.

Hopefully my English is making more sense to you now, and you understand the question.

With regards,

Sander Wijnen
WNS Development
0
Rumen
Telerik team
answered on 26 Dec 2011, 03:58 PM
Hello,

RadEditor for ASP.NET AJAX does not offer a built-in way to upload a file to a FTP server. To do that you should implement a custom file browser content provider and write the needed code in the StoreFile function which is executed when a file is being uploaded.

As Dobromir wrote: There is an example of a FTP content provider which is available in the following KB article:
Connecting the RadFileExplorer to a FTP filesystem

My suggestion is to examine its code and customize it to achieve your scenario.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Sander Wijnen
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Sander Wijnen
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or