RadFileExplorer FF15 cut file name at first white space

5 posts, 0 answers
  1. Ricardo
    Ricardo avatar
    22 posts
    Member since:
    Aug 2012

    Posted 29 Oct 2012 Link to this post

    Version: AJAX 2012 Q2 912
    Browser: FF 15.0.1

    Using the DBContentProvider to store the files on a MSSQL server.
    When I'm downloading the file it cuts the name up to the first white space.

    For example:

    Jenny Baxter PDP #4.pdf  -->  Jenny.pdf
  2. Vessy
    Admin
    Vessy avatar
    1382 posts

    Posted 30 Oct 2012 Link to this post

    Hi Ricardo,

    The path to a specific file in FileExplorer is passed in the URL and the control uses a GenericHandler (.ashx file that handles the files) to decode the path before it is used (and the white spaces are not among the allowed URL characters). This is why you need to avoid the using of any reserved symbols (including #, ?, etc.) in the name of the files.

    More detailed information is available in the following W3C article: Reserved characters.

    Regards,
    Vesi
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ricardo
    Ricardo avatar
    22 posts
    Member since:
    Aug 2012

    Posted 31 Oct 2012 Link to this post

    Vesi,

    We are now avoiding reserved characters, but the issue remains and it just affects FireFox 15
    IE8 does not show the issue.

    Example:

    IE8: OK
    Juan Minh 36.pdf -->  Juan Minh 36.pdf

    FF15: NOK
    Juan Minh 36.pdf --> Juan.pdf

    Not sure why FF15 is cropping the file name.
  5. Vessy
    Admin
    Vessy avatar
    1382 posts

    Posted 02 Nov 2012 Link to this post

    Hi Richardo,

    The successful reading of an URL containing blank spaces is a browser behavior and we cannot control it. This is why when a browser is not able to handle such URL, FileExplorer receives the part of the name, which is readable for the specific browser.

    The only workaround I could suggest you is to implement a custom logic, which is encrypting the file's name by replacing the white spaces and then decrypting it when the file is being downloaded.

    Kind regards,
    Vesi
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  6. Ricardo
    Ricardo avatar
    22 posts
    Member since:
    Aug 2012

    Posted 05 Nov 2012 Link to this post

    After a few hours looking into the issue I was able to make it work with FF.
    I just need to modify the handler.ashx file when posting the file back to the browser.

    The only set back is the '#' sign on IE8. FF15 works fine but IE make the '#' to '_' as I show below:

    FF15:
    Jenny Baxter PDP #4.pdf  -->  Jenny Baxter PDP #4.pdf  (Working!!!)

    IE8
    Jenny Baxter PDP #4.pdf  -->  Jenny Baxter PDP _4.pdf (Almost!!!)

    Not perfect but I'm happy with this so far.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017