FTP Uploaded files

4 posts, 0 answers
  1. Sander Wijnen
    Sander  Wijnen avatar
    5 posts
    Member since:
    Mar 2010

    Posted 21 Dec 2011 Link to this post

    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)
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 21 Dec 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sander Wijnen
    Sander  Wijnen avatar
    5 posts
    Member since:
    Mar 2010

    Posted 22 Dec 2011 Link to this post

    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
  5. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 26 Dec 2011 Link to this post

    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
Back to Top