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

Problem setting image upload limit

4 Answers 133 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Phi Kong
Top achievements
Rank 1
Phi Kong asked on 18 Jan 2010, 11:54 AM
Hi,

I am having problems setting the upload size in my image manager.  I have the following code

<telerik:RadEditor ID="radTextEditor" runat="Server"  EnableResize="False" 
    ToolsFile="~/assets/editorToolbar/body.xml" SpellCheckSettings-DictionaryLanguage="en-GB"
    <CssFiles> 
        <telerik:EditorCssFile Value="~/css/shared/radEditor.css" /> 
    </CssFiles> 
    <ImageManager SearchPatterns="*.jpg,*.jpeg,*.gif,*.png" MaxUploadFileSize="512000" /> 
    <Content> 
    </Content> 
</telerik:RadEditor> 

I still see the following when i load my image manager

Max file size allowed:200.00 KB
File extensions allowed:*.*

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 18 Jan 2010, 04:55 PM
Hello Phi Kong,

The RadEditor properties in your code are properly defined and work without problems on my side. For your convenience I have attached my sample project and video demonstrating my test. Are you able to reproduce the problem with the attached project?

All the best,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
greenmodulus
Top achievements
Rank 1
answered on 07 Apr 2010, 02:07 AM
I'm not sure what the resolution was to this but I have the same issue.

<telerik:RadEditor ID="RadEditor1" Height="400" Skin="WebBlue" Width="600" runat="server" ToolsFile="../module_toolsfile.xml" />
   <DocumentManager MaxUploadFileSize="3145728" />
   <ImageManager MaxUploadFileSize="1024000" />
</telerik:RadEditor>

I do that and when I click upload to upload an image it says my max file size is 200.00 KB (and it is).

If I try this in the codebehind:

RadEditor1.ImageManager.MaxUploadFileSize = 1024000;

Same thing.

No matter what I try, the limit does not change. I do not want to have to use config files. Any idea why this doesn't work for either of us?

0
Rumen
Telerik team
answered on 07 Apr 2010, 08:25 AM
Hi,

Are you able to reproduce the reported problem with the attached in my earlier post project?
If you use an older version then please upgrade to the latest one and test again.

Just for test can you please remove the ToolsFile property and see whether the issue still persists?

Best regards,
Rumen
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.
0
greenmodulus
Top achievements
Rank 1
answered on 08 Apr 2010, 10:09 PM
Well, it's pretty inexplicable, but I took out the toolsfile specification and then it worked. So I put the toolsfile specification back in, and it still worked. So then I changed the MaxUploadFileSize and reloaded the page (with the toolsfile still specified) and it reflected the new size and still worked.

So somehow loading it without the toolsfile once caused it to begin working henceforth with or without the toolsfile? Baffling.

Thanks. I don't have a clue how that fixed the problem, but apparently it did.
Tags
Editor
Asked by
Phi Kong
Top achievements
Rank 1
Answers by
Rumen
Telerik team
greenmodulus
Top achievements
Rank 1
Share this question
or