iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
hi,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.But the simple code below is not working completely,
hi,
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.
But the simple code below is not working completely,
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) {// the three lines below seems not working WebTextEditor1.FileUploaderSettings.Enabled = true; WebTextEditor1.FileUploaderSettings.DefaultUploadPath = "newsletter/" + userfolder + "/image/"; WebTextEditor1.FileUploaderSettings.DefaultUploadMediaResource = "newsletter/" + userfolder + "/image/"; WebTextEditorMediaResourceGroup wtemrg = new WebTextEditorMediaResourceGroup(); wtemrg.Name = "BImage"; wtemrg.Text = "CImage"; wtemrg.GroupResourceVisible = true; WebTextEditorResource rmg = new WebTextEditorResource(); rmg.Name = "Image"; rmg.AllowUserUpload = true; rmg.SearchInChildFolder = true; rmg.Text = "AImage"; rmg.Url = "newsletter/" + userfolder + "/image/"; wtemrg.Resources.Add(rmg); WebTextEditor1.MediaResources.Add(wtemrg); }
When i click inser from file shows the error shown in the image below .NB: Some times iam also getting the same error while trying to attach file in this forum. thanks and regardsca
When i click inser from file shows the error shown in the image below .
NB: Some times iam also getting the same error while trying to attach file in this forum.
thanks and regards
ca
Hello Ca,
Please try to moved your code into PreIntialize server side event. Hope this helps.
Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname