Receiving fake path while uploading

后端 未结 4 1258
温柔的废话
温柔的废话 2020-12-21 16:53

Whenever the uploading process happens through the Browsers rather than IE, the path
belongs to the file from client side systems is showing like \"c:/fakepath/x.jpg\"

4条回答
  •  情深已故
    2020-12-21 17:48

    This post shows a way to remove the 'fakepath' display:

    // Change the node's value by removing the fake path

    inputNode.value = fileInput.value.replace("C:\fakepath\", "");

提交回复
热议问题