Search code examples
asp.net-mvc-3uploadify

uploadify + asp.net-mvc3 problems


Hy guy.

I really tried to do it work but all im getting is an "IO Error".

Here's the code...

    $('#uploaded').uploadify({
        'uploader': '/Scripts/EggScripts/Uploadify/uploadify.swf',
        'cancelImg': '/Scripts/EggScripts/Uploadify/cancel.png',
        'buttonText': 'Anexar',
        'script':'Interaction/Upload',
        'folder': '/uploads/',
        'multi': true,
        'auto': true
    });

'

    [AcceptVerbs( HttpVerbs.Post )]
    public string Upload(HttpPostedFileBase file)
    {}

The breakpoint Upload action is not even being reached. I'm not using any Authorize decoration.

Any sugestion?


Solution

  • Uploadify recommends all paths be rooted so perhaps rooting the script param will help?

    'script':'/Interaction/Upload'