﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebTextEditor - WebFileUploader takes much longer to upload then HTML upload and spikes the CPU</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebFileUploader-takes-much-longer-to-upload-then-HTML-upload-and-spikes-the-CPU/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebFileUploader takes much longer to upload then HTML upload and spikes the CPU</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebFileUploader-takes-much-longer-to-upload-then-HTML-upload-and-spikes-the-CPU/</link><pubDate>Thu, 17 Mar 2011 01:49:36 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Nicolas,&lt;/p&gt;&lt;p&gt;Can you send a simple project that replicates the issue? We need this to investigate your issue. &lt;br /&gt;In your last snippet codes, there are some missing resources such as CSS, images and etc. The IntializeToolBar serverside event is also not stated. It would better to have it in a project. I will can try to deploy the project to see if the issue also occurs or not in here.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebFileUploader takes much longer to upload then HTML upload and spikes the CPU</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebFileUploader-takes-much-longer-to-upload-then-HTML-upload-and-spikes-the-CPU/</link><pubDate>Wed, 16 Mar 2011 12:15:51 GMT</pubDate><dc:creator>supporti-track.pmi@pmintl.com</dc:creator><description>&lt;p&gt;Hello Handy,&lt;/p&gt;
&lt;p&gt;I'm using .Net 3.5, asp.net 2.0 with IIS v5.1 on my Windows XP machine and I experience the same problem (very slow upload, more then 5 seconds for a file less thank 600 kb).&lt;/p&gt;
&lt;p&gt;I'm only able to reproduce this issue on our web solution. &lt;/p&gt;
&lt;p&gt;I tried to reproduce it with Intersoft samples or with a brand new website, but it is impossible to reproduce.&lt;/p&gt;
&lt;p&gt;Then, I tried to compare my web.config with the one from your samples and I was able to exclude that the problem comes from web.config.&lt;/p&gt;
&lt;p&gt;In Design view, here is my webtexteditor :&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebTextEditor:WebTextEditor ID="textEditor" runat="server" Width="100%" Height="500px"
            EnableViewState="false" DefaultStyleMode="ElegantBlueStyle"
            OnInitializeToolBar="textEditor_InitializeToolBar"
            OnPreInitialize="textEditor_PreInitialize"&amp;gt;
            &amp;lt;FlyPostBackSettings PostControlState="False" PostHiddenFields="False" PostInputControls="True"
            PostViewState="False" /&amp;gt;
            &amp;lt;ToolBarSettings ToolBarMode="Complete" /&amp;gt;
        &amp;lt;/ISWebTextEditor:WebTextEditor&amp;gt;&lt;/pre&gt;
&lt;p&gt;I initialize the fileuploader using the textEditor_PreInitialize event:&lt;/p&gt;&lt;pre&gt;protected void textEditor_PreInitialize(object sender, EventArgs e)
        {
            // init WebTextEditor Css 
            WebTextEditorCssFile webTextEditorCssFile = new WebTextEditorCssFile
            {
                FilePath = Constant.StylePath &amp;#43; "/Documentation/helpPage.css",
                Type = WebTextEditorCssType.DesignerStyleSheet
            };
            WebTextEditorCssFile webTextEditorCssFile2 = new WebTextEditorCssFile
            {
                FilePath = Constant.StylePath &amp;#43; "/Documentation/helpPage.css",
                Type = WebTextEditorCssType.RuntimeStyleSheet
            };
            textEditor.RootTextEditor.CssFiles.Add(webTextEditorCssFile);
            textEditor.RootTextEditor.CssFiles.Add(webTextEditorCssFile2);

            // Images Library
            WebTextEditorMediaResourceGroup mediaResourceGroup = new WebTextEditorMediaResourceGroup();
            mediaResourceGroup.Name = "media1";
            mediaResourceGroup.Text = "Photos";
            WebTextEditorResource resource = new WebTextEditorResource();
            resource.Name = "Images";
            // Get or create an new folder for the help page, depending on screen name and language
            resource.Url = VirtualPathUtility.ToAbsolute(Path.Combine(ConfigurationManager.AppSettings["DocumentationDirectory"], "Images/"));
            resource.AllowUserUpload = true;

            //WebTextEditorResource resource2 = new WebTextEditorResource();
            //resource2.Name = "Thumbnails";
            //// Get or create an new folder for the help page, depending on screen name and language
            //resource2.Url = VirtualPathUtility.ToAbsolute(Path.Combine(ConfigurationManager.AppSettings["DocumentationDirectory"], "Images/"));

            mediaResourceGroup.Resources.Add(resource);
            //mediaResourceGroup.Resources.Add(resource2);
            textEditor.MediaResources.Add(mediaResourceGroup);

            // View Settings
            textEditor.ViewSettings.EnableHTMLView = true;
            textEditor.ViewSettings.EnableSplitView = true;
            textEditor.ViewSettings.EnablePreview = true;
            textEditor.ViewSettings.EnableDesignView = true;

            textEditor.FileUploaderSettings.DefaultUploadMediaResource = "Images";
            // File Uploader of WebTextEditor
            // todo : as soon as we have an answer from Intersoft
            // Case URL : http://www.intersoftpt.com/Community/WebTextEditor/WebTextEditor-Load-Dynamically-an-user-control-containing-a-WebTextEditor-with-fileuploader/
            textEditor.FileUploaderSettings.Enabled = true;
            textEditor.FileUploaderSettings.TotalUploadSizeLimit = 1000000; // 1000kb limit
            textEditor.FileUploaderSettings.FileTypes = "*.jpg;*.png;*.zip";
        }&lt;/pre&gt;
&lt;p&gt;This works but it is too slow to use in a production website.&lt;/p&gt;
&lt;p&gt;Do you have any idea what is causing the fileUploader to be very slow?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Nicolas&lt;/p&gt;</description></item><item><title>WebFileUploader takes much longer to upload then HTML upload and spikes the CPU</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebFileUploader-takes-much-longer-to-upload-then-HTML-upload-and-spikes-the-CPU/</link><pubDate>Sun, 13 Mar 2011 23:55:03 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Mike,&lt;/p&gt;&lt;p&gt;Is it possible for you to send me a simple project that replicates your issue? Maybe some settings in your web.config is needed to replicate the issue. Also, Please let me know your environment detaisl such as OS (32 or 64 bit), Visual studio, etc.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy &lt;/p&gt;</description></item><item><title>WebFileUploader takes much longer to upload then HTML upload and spikes the CPU</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebFileUploader-takes-much-longer-to-upload-then-HTML-upload-and-spikes-the-CPU/</link><pubDate>Fri, 11 Mar 2011 13:23:56 GMT</pubDate><dc:creator>mdearman@libera.com</dc:creator><description>&lt;p&gt;I'm using .NET 3.5 with IIS 7 on Windows 7 in integrated pipeline mode.&lt;/p&gt;
&lt;p&gt;When I upload using the following properties:&lt;/p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;
&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ISWebTextEditor&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;WebFileUploader&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;ID&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="oUpload"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;runat&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="server"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Caption&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="Please select a file to upload:"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Width&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="600px" 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;DefaultButtonWidth&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="120px"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;UILayout&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="Panel"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;AllowAdd&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="False"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;InitialFilesCount&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="1" 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;PostbackMode&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="FlyPostBack"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;ProgressLatency&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="1000" 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;UploadType&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="BatchUpload"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;EnableWebResources&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="Always"&amp;gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ISWebTextEditor&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;WebFileUploader&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;gt; 
&lt;/span&gt;&lt;/span&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;My CPU spikes to 62% utilized (its a 4 core, 2.6Ghz CPU) during the entire upload.  If it finishes or I cancel the upload, the CPU comes right down.   This is only a 3MB file and uploads in about 5 seconds.  A normal HTML upload to the same page takes 2% CPU and uploads in about 0.2 seconds.&lt;/p&gt;
&lt;p&gt;What is the problem?&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>