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

Overwrite Image Checkbox with Custom FileBrowserContentProvider

3 Answers 100 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Doug Bellenger
Top achievements
Rank 2
Doug Bellenger asked on 17 Jul 2008, 08:00 PM
My team has written an application that takes advantage of the RadEditor and its built in ImageManager.  We decided that our means of persistence was going to be a relational database, and implemented our own FileBrowserContentProvider accordingly.  Everything works great, except we can't figure out how to pass the value of the "Overwrite if file exists?" checkbox into our FileBrowserContentProvider.  Our one thought was that it might be passed in the "arguments" parameter, but no such luck.  Please advise.

3 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 18 Jul 2008, 11:06 AM
Hi Doug,

The StoreFile() method should always overwrite the existing files. When a file is uploaded, the dialog first checks if it exists by calling GetFile(). If the file exists and the Overwrite checkbox is not checked, the dialog displays error message, without calling StoreFile(). You cannot determine if the checkbox is checked in the content provider.

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jonathan
Top achievements
Rank 1
answered on 13 Oct 2008, 09:40 PM
Is there a way to turn off or hide the "Overwrite if file exists?" option.  I do not want the user to be able to overwrite images, since this would, in a sense, be a way to delete/change an image already uploaded.  I have already disabled the image manager's ability to delete images.  Thanks.
0
Rumen
Telerik team
answered on 16 Oct 2008, 02:10 PM
Hi Jonathan,

Please, see the following forum thread on the subject: How to disable overwrite.

Kind regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Doug Bellenger
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or