Upload more than 1400 files at once

Last post 10-20-2011, 12:54 AM by sansindia85. 11 replies.
Sort Posts: Previous Next
  •  10-11-2011, 9:24 AM 70341

    Upload more than 1400 files at once

    I had observed that I could not upload more than 1400 files(.txt) at once using AjaxUploader feature - "Selecting multiple files".
    Is there any limitation with AjaxUploader?
    If not, how do I overcome this limitation?
     
    My requirement is that it should not limit number of files to be selected to a specific number. Sometimes, I may need to select more than 5000 files and upload it in one go.
  •  10-11-2011, 9:32 AM 70342 in reply to 70341

    Re: Upload more than 1400 files at once

    Hi sansindia85,
     
    What error yo got? can yo show me in detail?
     
    If get the file name to long message, it is the windows system limitation, is not a bug.
     
    Regards,
     
    Ken
  •  10-12-2011, 3:22 AM 70353 in reply to 70342

    Re: Upload more than 1400 files at once

    What error yo got?
    When I tried to select 1897 files at once, then there is no "ShowProgressBar" and no uploads takes place. I renamed the 1897 files to minimal filename and the upload is in progress.

    If get the file name to long message, it is the windows system limitation, is not a bug.

    How can I convey the same message to the user at runtime if the file upload cannot take place due to this limitation?
    I observed that "WindowsDialogLimitMsg" property has value "Unable to select so many files at once. The total file name length cannot exceed 32kb.".
    Do I need to use "WindowsDialogLimitMsg" property? If so, how to use it?

  •  10-12-2011, 7:05 AM 70355 in reply to 70353

    Re: Upload more than 1400 files at once

    Hi sansindia85,
     
    You can set the string to this property directly
     
    uploader1.WindowsDialogLimitMsg = "";
     
    Regards,
     
    Ken
  •  10-12-2011, 7:49 AM 70358 in reply to 70355

    Re: Upload more than 1400 files at once

    But the property value of WindowsDialogLimitMsg does not get displayed if the Uploader is unable to select mutiple files due to windows limitation.A message should be conveyed to the user. How to do it?
  •  10-12-2011, 8:34 AM 70359 in reply to 70358

    Re: Upload more than 1400 files at once

    hi sansindia85,
     
    Please try the example below, it shows you how to catch this error and show your custom message.
     
    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>example</title>
    </head>

    <body>
        <form id="form1" runat="server">
            <CuteWebUI:UploadAttachments ID="uploader1" runat="server">
            </CuteWebUI:UploadAttachments>
        </form>
    </body>
    </html>
    <script>
       function CuteWebUI_AjaxUploader_OnError(msg)

        {
            if(msg.indexOf("The specified path")!=-1)
            {
            //show the message you want
                alert("custom message!");
                return false;
            }
        }
    </script>
     
     
    Regards,
     
    Ken
  •  10-14-2011, 3:32 AM 70388 in reply to 70359

    Re: Upload more than 1400 files at once

    Hi Ken,
     
    I tried the code snippet which you had mentioned.
    I had selected 1897 files at once and clicked "Open" button.Unfortunately, I could not get any alert, neither the function "CuteWebUI_AjaxUploader_OnError" gets called or the file upload takes place.
     
    Regards,
    sans.
  •  10-14-2011, 7:26 AM 70397 in reply to 70388

    Re: Upload more than 1400 files at once

    Hi sansindia85,
     
    Can you show me what you got after clicked the "open" button?
     
    I tried a long file name, and got the error below.
     
     
     
    Regards,
     
    Ken
  •  10-17-2011, 3:36 AM 70412 in reply to 70397

    Re: Upload more than 1400 files at once

    I could able to get the error message for an individual file whose file name is very long.
    But, I could not get the same message when I select multiple files (1897) and click open.
    After I select those 1897 files and click open, the following things are observed:
    1)The upload does not proceed.
    2)No error message or dialog gets displayed.
     
     
  •  10-17-2011, 3:54 AM 70413 in reply to 70412

    Re: Upload more than 1400 files at once

    To reproduce the behavior at your end, please try to select more than 2000 files or more with their original filename.
  •  10-18-2011, 8:45 AM 70450 in reply to 70413

    Re: Upload more than 1400 files at once

    Hi sansindia85,
     
    I can reproduce it with 2000 files at one time. The development team working on this problem, once issue is resloved, I will keep your posted.
     
    Regards,
     
    Ken
  •  10-20-2011, 12:54 AM 70485 in reply to 70450

    Re: Upload more than 1400 files at once

    Hi Ken,
     
    When can we expect the problem to be fixed?
     
    Regards,
    Sans.
View as RSS news feed in XML