This forum is a community forum meant for users of the plugin to collaborate and help solve issues with implementation, etc. Unfortunately, as the creator of the plugin, I do not have much time to attend to every request here as this is only a side project and I must work a full-time job to provide for my family. This is how I keep the Flash version free and the HTML5 version low cost.
UploadiFive 1.1.1 has been released which includes a small fix for added support on touch devices including iOS 6 devices.
Cannot get from one project to another
  • Hi All

    I am using Razor and uploading from one(client) to another other Razor project(server). Essentially the client will get the image and post it to the server. So in the client..


    $('#fuFileUploader').uploadify({

    'method' : 'post',
    'swf': '@Url.Content("~/Scripts/uploadify/uploadify.swf")',
    'cancelImg': '@Url.Content("~/images/cancel.png")',
    'buttonText': 'Browse Files',
    'uploader': 'http://localhost/Server.REST/api/upload',
    'fileDesc': 'Image Files',
    'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
    'multi': true,
    'auto': true,
    'onError': function (a, b, c, d) {
    if (d.status == 404)
    alert("Could not find upload script. Use a path relative to: " + "<?= getcwd() ?>");
    else if (d.type === "HTTP")
    alert("error " + d.type + ": " + d.status);
    else if (d.type === "File Size")
    alert(c.name + " " + d.type + " Limit: " + Math.round(d.info / (1024 * 1024)) + "MB");
    Else
    alert("error " + d.type + ": " + d.text);
    }

    });

    will post to server:

    Routed:

    routes.MapHttpRoute(name:="ArtworkUploadActionApi1", routeTemplate:="api/{action}", defaults:=New With {.assetid = RouteParameter.Optional, .Controller = "ArtworkUpload"})




    I can access the following:
    _
    Public Function Upload() As ActionResult
    'Return MyBase.Upload(fileData)
    Try
    Diagnostics.Debug.WriteLine(fileData.ContentType)
    Catch ex As Exception
    Diagnostics.Debug.WriteLine(ex.GetBaseException.Message)
    End Try
    End Function


    But seem to get a HTTP 500 error when i replace the above with the following:

    _
    Public Function Upload(fileData As HttpPostedFileBase) As ActionResult
    'Return MyBase.Upload(fileData)
    Try
    Diagnostics.Debug.WriteLine(fileData.ContentType)
    Catch ex As Exception
    Diagnostics.Debug.WriteLine(ex.GetBaseException.Message)
    End Try
    End Function


    Only thing that has changed is that I have added '(fileData As HttpPostedFileBase)' as the parameters.

    Is there any way to get the fileData within this call?