+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Overwrite/Replace Images using Image Editor Dialog

Overwrite/Replace Images using Image Editor Dialog

2 posts, 0 answered
  1. Nauman
    Nauman avatar
    23 posts
    Registered:
    02 Jun 2010
    15 Jun 2011
    Link to this post
    Hi everybody,

    I am using Image Editor Dialog via Button Selector to upload image in a profile form.
    <sfLib:ButtonSelector ID="bsThumb" WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx" ItemTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/Dialogs/ButtonSelector.ascx" AssociatedControls="txtThumbnail" runat="server" CssClass="picker" ButtonText="Select" />

    It works really great for uploading new images, but when I try to update the profile, uploading a new image with the same name, doesn't update the image. What it does is that it uploads the image with a different name such as image(1).jpg.

    Is there a possibility or property to confirm the user if he/she wants to replace the old image or upload it with a new name.

    Regards,

    Nauman
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Jun 2011
    Link to this post
    Hello Nauman,

    Unfortunately this control cannot be extended to provide such functionality. You need to create your own control which will first query the module for existing images and then if it finds one that matches, delete it first, then upload the new one.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered