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

[Solved] Single Directory in File Manager

9 Answers 288 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 28 Feb 2008, 09:22 PM
Hello,

This is in regards to the latest change you have made to the editor that allowed it to enter a single directory by default in the file managers.

It does as advertised and opens the directory in my application but when I just choose "Upload" and upload an image it actually places it in the root of the web application and not in the folder it has opened by default.

If I instead click the item that allows me to navigate up a folder and then double click the folder to go back to where it put me by default and then upload an image it goes into the expected folder.

string

[] paths = new string[] {
    "~/Uploads/
};

radEditor.ImageManager.UploadPaths = paths;

radEditor.ImageManager.DeletePaths = paths;

radEditor.ImageManager.ViewPaths = paths;


So my question is what am I doing wrong?

9 Answers, 1 is accepted

Sort by
0
rdochert
Top achievements
Rank 1
answered on 28 Feb 2008, 11:28 PM
Hi

i've just narrowed down this issue on my system too. it is definitely not a coding error, the new Telerik dll is causing this problem.

i need an urgent fix to this please. i'm not too keen to have my users writing image files all over the root of my application!

rob

ps: when you open the image browser and it correctly shows the only directory instead of having to double click to get to it, that is ok. but if you then click on the refresh button it goes back to the way it was before.
0
Eirik
Top achievements
Rank 1
answered on 29 Feb 2008, 07:17 AM
I'm having the same problem. Hope you can fix this quick
0
Eirik
Top achievements
Rank 1
answered on 29 Feb 2008, 07:49 AM
Why do we have to set paths for views, upload and delete anyway? Won't these have the same path? At least upload and delete
0
Rumen
Telerik team
answered on 29 Feb 2008, 05:29 PM
Hi guys,

We are aware of the issue and we will fix it as soon as possible. Please, excuse us for the temporary inconvenience that this issue is causing.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tom
Top achievements
Rank 1
answered on 29 Feb 2008, 05:38 PM
What sort of timeline are we looking at to get a fix for this issue?
0
Rumen
Telerik team
answered on 04 Mar 2008, 02:32 PM
Hi Tom,

The hotfix will be released officially with the Q1 release of RadControls "Prometheus" 2008, due in April.

If you want to obtain a custom build in advance, please open a formal support ticket, specify this forum thread and we will send you the hotfix.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Eirik
Top achievements
Rank 1
answered on 06 Mar 2008, 10:43 AM
Ok I received the hotfix but it didn't solve the problem (using .net 3.5 dll file). If I open the image manager and try to upload an image it tries to save to image to the root of the site, not the current folder. If I do something first. For example select a previous uploaded image and then try to upload the image, it is uploaded to correct folder.

There are also some caching issues. If i delete all images in the folder, close the image manager and then reopens it, it displays all the images I deleted. Then I click refresh and the images are removed, but if I close the image manager and reopen it, the images are displayed again.

One thing I am also missing is the function for creating thumbnails which is available in rad 7.x (IE only). You told me some months ago that this function would be available for all browser in prometheus: http://www.telerik.com/community/forums/thread/b311D-battem.aspx

Here is my code. Have i done something wrong that are causing these problems?

<telerik:RadEditor ID="RadEditor1" runat="server" Language="nb-NO"
            Skin="Default2006" ToolsFile="~/RadControls/Toolbar.xml" Width="580px"
            Height="500px" ContentAreaCssFile="~/RadControls/content.css"
            StripFormattingOptions="AllExceptNewLines">
            <Content></Content>
            <ImageManager ViewPaths="~/uploads/images" UploadPaths="~/uploads/images" DeletePaths="~/uploads/images" MaxUploadFileSize="10240000"   />
            <MediaManager ViewPaths="~/uploads/video" UploadPaths="~/uploads/video" DeletePaths="~/uploads/video" MaxUploadFileSize="10240000" />
            <FlashManager ViewPaths="~/uploads/flash" UploadPaths="~/uploads/flash" DeletePaths="~/uploads/flash" MaxUploadFileSize="10240000" />
            <DocumentManager ViewPaths="~/uploads/docs" UploadPaths="~/uploads/docs" DeletePaths="~/uploads/docs" MaxUploadFileSize="10240000" />
            <SpellCheckSettings SpellCheckProvider="EditDistanceProvider" WordIgnoreOptions="RepeatedWords" DictionaryLanguage="nb-NO"></SpellCheckSettings>
        </telerik:RadEditor>
0
Rumen
Telerik team
answered on 06 Mar 2008, 12:08 PM
Hi Eirik,

I tried to reproduce the reported two problems with the provided hotfix, but unfortunately to no avail. I found however a caching problem, e.g. upload an image -> close and open again the image dialog -> then the file browser does not display the image. You should click on the refresh button to display the file. I reported this problem to our developers and we will fix it.

You can see my complete test with the latest build compiled against .NET3.5 in the attached video. Am I missing something?

In regards to the thumbnail creation feature: We plan to release an image editor in the Q1 release of RadEditor "Prometheus" 2008. It will allow you to create thumbnails as well.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Eirik
Top achievements
Rank 1
answered on 06 Mar 2008, 12:32 PM
Thank you for the fanatical support :)
Figured out what was happening. The dll refresh file was copying the old dll file to my project when I started it. So when I removed it I was able to test the hot fix, and it works! But I think I'll have to wait with deploying Prometheus due to the lack of thumbnail function. Looking forward to the next release! Thanks
Tags
Editor
Asked by
Tom
Top achievements
Rank 1
Answers by
rdochert
Top achievements
Rank 1
Eirik
Top achievements
Rank 1
Rumen
Telerik team
Tom
Top achievements
Rank 1
Share this question
or