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.
IO error 2038 in ASP.NET 3.5 environment
  • Hey guys,

    From looking around on the web, I'm really impressed with the elegance of your file upload solution and look forward to have it working on my site. However, I have not been successful yet in my implementation, as I keep getting IO Error 2038 when trying to upload files.

    I setup a very basic ASP.NET 3.5 web application in the hopes of removing any stuff that could be inadvertently messing up with the Uploadfiy code, but still no luck. Here's the rundown:

    Environment: Windows Vista x64
    IDE: Visual Studio 2008 SP1
    Uploadify version: 1.6.2
    .NET Version: 3.5 SP1
    Host: Visual Studio's debug host / also tried IIS 7 that comes with Windows Vista - had the same problem.

    Here's the full code for my default.aspx:
    ---------------------------------------------------------------------------------------------------------------------------------------------
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestApp._Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    http://www.w3.org/1999/xhtml" >





    $(document).ready(function() {
    $('#fileUpload').fileUpload({
    'uploader': 'Scripts/Uploadify/uploader.swf',
    'script': 'Scripts/Uploadify/upload.ashx',
    'folder': 'Songs',
    'cancelImg': 'Scripts/Uploadify/cancel.png',
    'multi': false,
    'displayData': 'speed',
    '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.sizeLimit/1024)+'KB');
    else
    alert('error '+d.type+": "+d.text);
    }
    });
    });





    You have a problem with your javascript

    Start Upload | Clear Queue




    ---------------------------------------------------------------------------------------------------------------------------------------------
    Here's my code for the upload.ashx handler:

    public class Upload : IHttpHandler
    {
    public void ProcessRequest(HttpContext context)
    {
    HttpPostedFile oFile = context.Request.Files["Filedata"];
    string sDirectory = HttpContext.Current.Server.MapPath(@context.Request["folder"]);
    oFile.SaveAs(sDirectory + oFile.FileName);
    if (!Directory.Exists(sDirectory)) Directory.CreateDirectory(sDirectory);
    context.Response.Write("1");
    }
    public bool IsReusable
    {
    get { return false; }
    }
    }
    ----------------------------------------------------------------------------------------------------------------------------
    For what it's worth, the default.aspx file is at the same level as the Scripts folder. Any clues on what I'm doing wrong? Any help is immensely appreciated!

    Victor
  • Hi mate did you have any success working out what was going on here, I am getting the same error codes and its slowly eating into my patience lol

    Any help would be appreciated
  • NOTE: Keep in mind that with ASP hosting, by default an ASP/ASP.NET script does not have write access to the root directory or subdirectories of a hosting account. If you want to specify write access to the root directory or a subdirectory, you must define write access to that directory through the FTP File Manager option in your hosting account settings. You can also use the IIS Settings to set up a "Virtual Root" in IIS by selecting the Set Application Root option.

    http://community.godaddy.com/help/3970/what-is-the-absolute-or-direct-path-for-my-windows-asp-hosting-account