c# - AjaxFileUpload Button 'Upload' Failure -


i have done quite bit of searching, , tried many different options. haven't seen other person has been having similar problem.

i have the following code placed page , element reacts fine on page. 'toolkitscriptmanager have tried both regular 1 shown below. neither work.

        <asp:toolkitscriptmanager id="toolkitscriptmanager1" runat="server"></asp:toolkitscriptmanager>         <asp:ajaxfileupload id="inpfileupload" runat="server" onuploadcomplete="inpfileupload_uploadcomplete" maximumnumberoffiles="3" allowedfiletypes="jpg,jpeg,doc,png" /> 

i have following background code element

    protected void inpfileupload_uploadcomplete(object sender, ajaxcontroltoolkit.ajaxfileuploadeventargs e)     {         string path = @"\\networkpath\uploadedfiles\" + e.filename;         inpfileupload.saveas(path);     } 

however gives me no error, or message stating going wrong. have followed every tutorial can find on element , none have been able fix issue.

i press browse find file, select one/more 1 , appears doing fine, files appear in upload list.

however when click 'upload' button comes ajaxfileupload element nothing happens. @ times can see red on upload button goes 'upload' blue style again. not upload files selected, or can tell isn't doing when button pressed other changing of button.

not sure doing wrong, or if missing something..

update

thanks of matthew learned there javascript error console when pressing 'upload' button returns "uncaught exception: failed starting upload"

i can't solve problem you, can tell start.

first, browser using? that's important, if you're using old version of ie.

after that, though, here tips working , debugging ajax:

  1. if doesn't work, first step check javascript error console. in ie , chrome, press f12 open dev tools. in firefox, press ctrl+shift+j open js error console. if you're using firefox, recommend using "web developer" extension , firebug.
  2. if there no error in error console, use http debugger/proxy (i love fiddler) make sure ajax request expected ajax request page making. (if don't know http well, way start learning. , yes, need know stuff.)
  3. test in more 1 browser see if it's browser-specific issue.

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -