ASP.NET: Get file path on client's machine (Any possible solutions/work arounds?)

前端 未结 4 497
难免孤独
难免孤独 2020-12-22 12:55

I have a file upload control on .aspx page where I am extracting basic file information. The requirement is that I need to save absolute path for selected file from client\'

4条回答
  •  庸人自扰
    2020-12-22 13:14

    Browser send file without full file path, so to retrieve file path you do it on client side via javascript function:

    
    
    
    
    ... ...

    If you don't want to send a file path via query string, you can create hidden form field, so file path will be sent via post.

提交回复
热议问题