MVC3 and Ajax Uploader

Last post 12-27-2010, 2:45 PM by gustyn. 5 replies.
Sort Posts: Previous Next
  •  11-08-2010, 3:17 AM 64912

    MVC3 and Ajax Uploader

    Was wondering if Ajax Uploader works with MVC 3 Beta.  I realize it it still a beta product, but I have been working in it since about the time my program goes live, the MVC 3 will as well (or hopefully).  In any case, I had it running pretty good in MVC 2.  But in MVC 3 I keep getting java error complaining about a null object in the code rendered by View.uploadhtml.
     
    here is the relevent area of the rendered page (the error is thrown by the code CuteWebUI_AjaxUploader_Initialize(this.id);
     

    <button id="uploadbutton" onclick="return false;" onclick="return uploadbutton_onclick()">Click here to upload your dictations</button>

     

    <!-- input type='hidden' id='myuploader' name='myuploader' -->

    <script type='text/javascript' src='/CuteWebUI.AjaxUploader.ashx?type=script&_ver='></script><input type='hidden' id='myuploader' name='myuploader' autocomplete='off' /><img id='myuploader_Loader' UniqueID='myuploader' Namespace='CuteWebUI' PageUpload='1' src='/CuteWebUI.AjaxUploader.ashx?type=file&file=continuous.gif' onload='this.style.display="none" ; CuteWebUI_AjaxUploader_Initialize(this.id);' onerror='this.onload()' ContextValue='!3wEWAQUMfi91cGxvYWR0ZW1wGmtdM8cilxEqJ4dEE8xh!1hkOUSrS4CgGSnfml9F8TmQ!2' UploadModuleNotInstall='1' ShowProgressInfo="1" CancelUploadMsg="Cancel upload" ShowProgressBar="1" InsertButtonID="uploadbutton" UploadUrl="/UploadHandler.ashx" UploadingMsg="Uploading.." ResourceHandler="/CuteWebUI.AjaxUploader.ashx" PanelWidth="360" CancelAllMsg="Cancel all Uploads" WindowsDialogLimitMsg="Unable to select so many files at once. The total file name length cannot exceed 32kb." BarHeight="20" BorderStyle="border:1px solid #444444;" FileTooLargeMsg="{0} cannot be uploaded!

    File size ({1}) is too large. The maximum file size allowed is set to: {2}." BarStyle="Continuous" MaxFilesLimitMsg="The maximum number of files allowed to be uploaded is set to {0}." UploadType="Auto" MultipleFilesUpload="1" InfoStyle="padding-left:3px;font:normal 12px Tahoma;" Extensions="dvf,wav,mp3,wma,dss,ds2,msv" InserText="Upload a file"/>

     

    <%-- Html.EndForm(); --%>

  •  11-09-2010, 9:06 AM 64939 in reply to 64912

    Re: MVC3 and Ajax Uploader

    gustyn,
     
    We are investigating this issue and will get back to you as soon as possible.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-10-2010, 10:57 PM 64967 in reply to 64912

    Re: MVC3 and Ajax Uploader

    Hi gustyn,
     
    I just tested MVC3 with AjaxUploader, it works fine for me.
     
    Can you create a simple example which can reproduce this issue and send it to Kenneth@CuteSoft.net. I will check it and get back to you as soon as possible.
     
    Regards,
     
    ken 
  •  11-17-2010, 7:44 PM 65068 in reply to 64912

    Re: MVC3 and Ajax Uploader

    Hi,
     
    Make sure you have installed the upload module into web.config correctly.
     
    Regards,
    Terry
     
  •  12-20-2010, 6:09 PM 65473 in reply to 65068

    Re: MVC3 and Ajax Uploader

    Thanks guys, I have been working on other aspects of this project and getting the infrastructure down.  I am now ready to start poking at this again.  The nice thing is I understand mvc better now at least and I will be starting with a clean slate.  Thanks for your help.
  •  12-27-2010, 2:45 PM 65534 in reply to 65473

    Re: MVC3 and Ajax Uploader

    Thanks all for your help.  Part of the problem was the web.config file configuration (or not as it has been a while since I posted this).  Doh!  I managed to also solve my problem with rendering the html uisng the Render() method.  I made a detailed post as to my solution.  Would be awesome if we could get a sample for MVC 3 in the samples.
     
    Thanks
View as RSS news feed in XML