Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

HtmlEditor Extender Image Upload

$
0
0

Hey guys,

Here is my situation. I have ajax control toolkit loaded on my website basically is a kb that I builded. In the new article section I have a htmleditorextender texbox and image upload, and it works. We are 2 developper working on the project and when uploading images it works fine and shows into the textbox.

I have 2 employee testing the kb and when they do upload images through the texbox like we do, it does upload the image no problem but it does not display the image into the textbox, just shows a big red X in a square, and then prompt for credentials. Even they enter their credentials it will reprompt them but the image still does not show up.

So what I did I went and give them full control over the website folder because assinign permissions to the folder directly did not work.

I changed a bit of my code and never got it to fail for me or the other dev but for the 2 employees it does fail.

Protected Sub HtmlEditorExtender1_ImageUploadComplete(sender As Object, e As AjaxControlToolkit.AjaxFileUploadEventArgs) Handles HtmlEditorExtender1.ImageUploadComplete

        Dim filepath As String = "~\kb\images\" + e.FileName
        Dim AjaxFileUpload = DirectCast(sender, AjaxFileUpload)
        AjaxFileUpload.SaveAs(Server.MapPath(filepath))
        ' e.PostedUrl = Page.ResolveUrl("~\\kb\\images\\" + e.FileName)
        e.PostedUrl = Page.ResolveUrl("http://ip/kb/images/" + e.FileName)
        tbArticleContent.Text = Server.HtmlDecode(tbArticleContent.Text)
    End Sub


To me it sounds like a permissions issue or maybe a browser thing. I have IE 11 loaded on my machine and it's fine. Got my other dev loaded with Ie8 no issues. Added the website also as local intranet zone and setup a single sign-on to make sure it don't prompt and it will still prompt.

Is there a setting in IIS I should check? I got IIS 7 on windows server 2008 R2 or a windows folde permissions.

Thanks,

Pierre

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>