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

[Solved] Image Manager, Image Editor, Custom FileBrowserContentProvider Question

1 Answer 66 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 23 Feb 2010, 12:22 AM
Following this link here, I'm implementing a custom FileBrowserContentProvider in conjunction with the Image Manager.  What I need is a way for user A to upload a file and user B to upload a file without those files being shared within a single folder.  With backend code modifications, we support this by renaming the uploaded file with a GUID and storing this GUID along with the original file name and the user's AccountID (already known at login) in our data source.  All works pretty good, but I have a couple issues.

1) If the user clicks on the Image Editor and modifies the image, why does the image not get refreshed in the Image Preview window?  Is there some call I need to make or handle some other custom event?  I couldn't find anyone else reporting issues with this.

2) I'm seeing the DeleteFile event fired when I'm in the Image Editor and click the save button.  This is another one I haven't found anyone else asking about.

I'd be willing to share some code, but this is an elaborate process we have going on right now.  Via the Telerik online Demos I did seem to see the demos acting similar to my first issue.  Thank you for any help or direction.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 25 Feb 2010, 01:54 PM
Hi Chris,

The first issue is expected browser behavior. You are not seeing the modified image because the browser is displaying a cached one - that is why we recommend to save the modified images under new name. For the time being we cannot provide any suitable workaround for this behavior.

Regarding the second issue, yes this is expected behavior of the ImageEditor. By design DeleteFile is called when overwriting an existing file.

In addition, I think that the following KB article will be useful for your scenario:
Hide certain directories and files in RadFileExplorer

All the best,
Dobromir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Chris
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or