convert from physical path to virtual path

后端 未结 3 1029
野性不改
野性不改 2020-12-15 21:36

I have this function that gets the fileData as a byte array and a file path. The error I am getting is when it tries to set the fileInfo in the code bewlo. It says \'Physica

3条回答
  •  有刺的猬
    2020-12-15 21:58

    If you already have a physical path, it doesn't make sense to call Server.MapPath.

    You're calling MapPath twice.

提交回复
热议问题