﻿<?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 - configuring fileupload dynamically</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/configuring-fileupload-dynamically/</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>configuring fileupload dynamically</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/configuring-fileupload-dynamically/</link><pubDate>Mon, 19 Apr 2010 12:04:24 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Ca,&lt;/p&gt;&lt;p&gt;Please try to moved your code into PreIntialize server side event. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>configuring fileupload dynamically</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/configuring-fileupload-dynamically/</link><pubDate>Mon, 19 Apr 2010 08:44:47 GMT</pubDate><dc:creator>ismail</dc:creator><description>&lt;br /&gt;
&lt;p&gt;&lt;span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'times new roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;" class="Apple-style-span"&gt;&lt;span style="font-family: 'lucida sans unicode'; font-size: 13px;" class="Apple-style-span"&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;hi,&lt;/p&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;i want to configure the file upload from the backend. Because i am generating uploading path dynamic. The code for getting the existing images on the media gallery is working fine.&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;But the simple code below is not working completely,&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;     protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;       &lt;br /&gt;        if (IsPostBack)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;// the three lines below seems not working&lt;br /&gt;            WebTextEditor1.FileUploaderSettings.Enabled = true;&lt;br /&gt;            WebTextEditor1.FileUploaderSettings.DefaultUploadPath = "newsletter/" &amp;#43; userfolder &amp;#43; "/image/";&lt;br /&gt;            WebTextEditor1.FileUploaderSettings.DefaultUploadMediaResource = "newsletter/" &amp;#43; userfolder &amp;#43; "/image/";&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            WebTextEditorMediaResourceGroup wtemrg = new WebTextEditorMediaResourceGroup();&lt;br /&gt;            wtemrg.Name = "BImage";&lt;br /&gt;            wtemrg.Text = "CImage";&lt;br /&gt;            wtemrg.GroupResourceVisible = true;&lt;br /&gt;&lt;br /&gt;            WebTextEditorResource rmg = new WebTextEditorResource();&lt;br /&gt;            rmg.Name = "Image";&lt;br /&gt;            rmg.AllowUserUpload = true;&lt;br /&gt;            rmg.SearchInChildFolder = true;&lt;br /&gt;            rmg.Text = "AImage";&lt;br /&gt;            rmg.Url = "newsletter/" &amp;#43; userfolder &amp;#43; "/image/";&lt;br /&gt;&lt;br /&gt;            wtemrg.Resources.Add(rmg);&lt;br /&gt;            WebTextEditor1.MediaResources.Add(wtemrg);&lt;br /&gt;&lt;br /&gt;        }&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'times new roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;" class="Apple-style-span"&gt;&lt;span style="font-family: 'lucida sans unicode'; font-size: 13px;" class="Apple-style-span"&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;When i click inser from file shows the error shown in the image below .&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;NB: Some times iam also getting the same error while trying to attach file in this forum. &lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;thanks and regards&lt;/p&gt;&lt;p style="margin-top: 10px; margin-bottom: 10px;"&gt;ca&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>