More in this section
Forums / Developing with Sitefinity / Overwrite/Replace Images using Image Editor Dialog

Overwrite/Replace Images using Image Editor Dialog

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Nauman
    Nauman avatar
    23 posts
    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.


  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    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