HTTP error 414 when trying to upload a large filename

4 posts, 0 answers
  1. Ruben
    Ruben avatar
    4 posts
    Member since:
    Sep 2017

    Posted 21 Sep Link to this post

    Hi, 

    I'm using RadAsyncUpload and when trying to upload a file with more than 206 characters in the filename I'm getting the HTTP error 414 URI too long.

    Any idea how to fix this? If not, is there any way to replace the filename of the selected file to the first 140 characters to avoid this error? 

    Thanks

  2. Ruben
    Ruben avatar
    4 posts
    Member since:
    Sep 2017

    Posted 21 Sep in reply to Ruben Link to this post

    The issue is due this error: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    And that's because in this case the temporary file will be stored in this path: C:\repo\ebuilder\App_Data\RadUploadTemp\

    So the filename will be the name with 206 characters plus a number generated by Telerik of 13 characters, and doing a sum of the path plus the filename will be 259

  3. Ruben
    Ruben avatar
    4 posts
    Member since:
    Sep 2017

    Posted 21 Sep in reply to Ruben Link to this post

    So, basically I think the only way to fix this will be saving the temporary file with a shorter filename. Is there any way of do this?

    Thanks

  4. Ruben
    Ruben avatar
    4 posts
    Member since:
    Sep 2017

    Posted 21 Sep in reply to Ruben Link to this post

    So basically I think the only way to fix this is saving the temporary file with a shorter filename. Is there any way to do this?

    Thanks

Back to Top