Skip to content

File Upload Path Issue with IE #17

@nameofperson

Description

@nameofperson

Hello!, I've been currently implementing your file manager and I love it, but there's an issue with the upload functionality when used in IE. Specifically, when the application tries to save the uploaded file, the user will receive an error like "The given path's format is not supported". Drilling down on the source code, the problem starts when the application generates the file save target destination:

strTargetFile = this.objConfig.strUploadPath + this.strFolder + filUpload.FileName.ToLower();

On IE, filUpload.FileName does not translate to the direct file name, but rather to the full upload path from the user side:
(Mozilla)
mozilla

(IE)
ie

I solved it locally by wrapping the call from filUpload.FileName to Path.GetFileName(filUpload.FileName) and it now works, so I thought I'd let you know in case anyone else gets the same issue.

Love your work, thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions