MVC Disable iFrame??

Last post 03-22-2011, 11:06 PM by Kenneth. 11 replies.
Sort Posts: Previous Next
  •  03-06-2011, 12:13 PM 66555

    MVC Disable iFrame??

    Greetings,
     
    Looking to disable iFrame uploads using the MVC piece...looks like SetAdvancedOption isn't available for the MVC piece...
     
    Solution?
     
    Thanks,
    -Kevin 
  •  03-06-2011, 10:48 PM 66558 in reply to 66555

    Re: MVC Disable iFrame??

    Hi atwoodkevin,
     
    We will add it in MVC version soon, sorry for your inconvenience.
     
    Regards,
     
    Ken
  •  03-07-2011, 10:42 AM 66572 in reply to 66558

    Re: MVC Disable iFrame??

    Excellent, thanks!
     
    ETA?  Thinking weeks or days??
     
    Thanks,
    -Kevin 
  •  03-07-2011, 7:27 PM 66577 in reply to 66572

    Re: MVC Disable iFrame??

    Hi atwoodkevin,
     
    About a week.
     
    Regards,
     
    ken
  •  03-17-2011, 12:08 PM 66719 in reply to 66577

    Re: MVC Disable iFrame??

    Update on this one?
  •  03-21-2011, 5:23 AM 66770 in reply to 66719

    Re: MVC Disable iFrame??

    Hi atwoodkevin,

     

    We have added this option in the latest version.

     

    Please download the latest version and try again. Download http://ajaxuploader.com/download/Ajax-Uploader.zip

     

    Please refer to http://cutesoft.net/forums/65572/ShowThread.aspx#65572, it shows you how to add a new property in MVC mode.

     

    Regards,

     

    Ken

  •  03-21-2011, 2:10 PM 66778 in reply to 66770

    Re: MVC Disable iFrame??

    Looks good...how to disable the iFrame?
  •  03-21-2011, 2:45 PM 66782 in reply to 66778

    Re: MVC Disable iFrame??

    Dear atwoodkevin,
     
    Please follow steps:
     
    1. Open file UploadHandler.ashx
    2. Find section below
    public override void OnUploaderInit(MvcUploader uploader)
    {
    }
    3. Change to
    public override void OnUploaderInit(MvcUploader uploader)
    {
    //change photo to your folder name
    uploader.SetAdvancedOption(UploaderAdvancedOption.NoSilverlight, "true");
    }
    4. Open file "Controllers/SamplesController.cs"
    5. Add the same section as step3 in the the method below
    using (CuteWebUI.MvcUploader uploader = new CuteWebUI.MvcUploader(System.Web.HttpContext.Current))
    {
    }
    Like
    using (CuteWebUI.MvcUploader uploader = new CuteWebUI.MvcUploader(System.Web.HttpContext.Current))
    {
    uploader.SetAdvancedOption(UploaderAdvancedOption.NoSilverlight, "true");
    }
    6. Build the project
     
    Thank you for asking
    Eric@cutesoft.net
  •  03-21-2011, 3:34 PM 66783 in reply to 66782

    Re: MVC Disable iFrame??

    Yes I am aware of that, but seems to have overlooked the NoiFrame option.
  •  03-21-2011, 10:28 PM 66788 in reply to 66783

    Re: MVC Disable iFrame??

    Hi atwoodkevin,
     
    The IFrame mode is the basic upload function.
     
    by default, AjaxUploader will use Silverlight mode for upload. If client does not install silverlight, it will change to Flash mode. If client does not install Flash too, it will change to IFrame mode.
     
    It mean that, all users will not use IFrame mode by default. If he has not silverlight and flash, and you disable the IFrame mode too, and than AjaxUploader will get wrong.
     
    Regards,
     
    Ken
  •  03-22-2011, 12:18 PM 66801 in reply to 66788

    Re: MVC Disable iFrame??

    Okay...at this point, the OnSelect for the iFrame does not return the filesize, this a limitation of the iFrame?
  •  03-22-2011, 11:06 PM 66809 in reply to 66801

    Re: MVC Disable iFrame??

    Hi atwoodkevin,
     
    It is the browser limitation. The browser does not return the file size when using IFrame mode for upload. Sorry for your inconvenience.
     
    Regards,
     
    Ken
View as RSS news feed in XML