[CLOSED] File Upload Issue - Too long file path cannot trigger the direct method

  1. #1

    [CLOSED] File Upload Issue - Too long file path cannot trigger the direct method

    I come across an issue with the file upload control when uploading file in IE8.0 browser.
    When I upload a file with a very long file name (e.g. 200 characters) in desktop using IE browser, the file path is too long which cannot trigger the direct method. Please assist. Thanks !
    Last edited by Daniil; Jun 18, 2013 at 3:33 AM. Reason: [CLOSED]
  2. #2
    Hi @kwcitadmin,

    the file path is too long which cannot trigger the direct method
    What happens instead? Is there any error, exception?

    Is it only reproducible in IE8?
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @kwcitadmin,



    What happens instead? Is there any error, exception?

    Is it only reproducible in IE8?

    Deleted.....
  4. #4
    Quote Originally Posted by Daniil View Post
    Hi @kwcitadmin,



    What happens instead? Is there any error, exception?

    Is it only reproducible in IE8?

    After selecting a file for upload, it is expected that the control would trigger the event "FileSelected" or other js function or DirectMethod could access the file info.

    This failed for the following combinations:
    1. Long filename, e.g. 250 characters, which is valid in Windows enviroment
    2. Long file path, e.g. D:\User\abc123\Desktop\example\task1\...
    3. IE8

    You may reproduce the problem using the fileupload sample:
    https://examples1.ext.net/#/Form/FileUploadField/Basic/

    Thanks :)
  5. #5
    Quote Originally Posted by Daniil View Post
    Is it only reproducible in IE8?
    Could you, please, answer? I just don't have IE8 on my machine and would prefer to test it in any other browser if reproducible.
  6. #6
    Is it reproducible with pure HTML file uploading?
  7. #7
    Quote Originally Posted by Daniil View Post
    Could you, please, answer? I just don't have IE8 on my machine and would prefer to test it in any other browser if reproducible.
    We have tested with IE8 and FireFox 16.0.2. The problem only existed at IE8, which is the major browser of our users.

    The problem is that fileSelected event cannot be fired for us to alert user the file path issue.
  8. #8
    Quote Originally Posted by Daniil View Post
    Is it reproducible with pure HTML file uploading?
    The problem is reproducible with pure HTML file uploading.
  9. #9
    Thank you for all the details.

    I am afraid we can't do much here. I found this topic on stackoverflow.
    http://stackoverflow.com/questions/4...long-filenames

    The answer sounds logical. It appears to be a Windows/IE issue and I can't see any possibilities to resolve it, even to notify a user about a failure upload.

    I am unable to reproduce it on my Windows 7 SP1 and IE9.

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!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 runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <input type="file" onchange="alert('A file is selected');" />
    
            <ext:FileUploadField runat="server" Width="200">
                <Listeners>
                    <FileSelected Handler="alert('FileSelected');" />
                </Listeners>
            </ext:FileUploadField>
        </form>
    </body>
    </html>
    File Path (259 symbols)
    C:\Users\Daniil\Desktop\Example\task1\test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test te.txt
    If reduce the file path to 255 symbols, it starts working. It stops working with 256 symbols and more.

Similar Threads

  1. [CLOSED] multiple file upload and file size at client side
    By mirwais in forum 1.x Legacy Premium Help
    Replies: 24
    Last Post: Dec 15, 2014, 5:44 AM
  2. Replies: 1
    Last Post: Mar 15, 2013, 1:38 AM
  3. [CLOSED] Multiple file support to upload in file upload control
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 01, 2013, 9:41 AM
  4. Replies: 1
    Last Post: Dec 06, 2012, 5:27 AM
  5. Upload file with file path
    By yash.kapoor in forum 2.x Help
    Replies: 4
    Last Post: Nov 02, 2012, 11:15 AM

Tags for this Thread

Posting Permissions