开发者

Folder Link of the uploaded file

Here is my situation

I am developing a project management application in a开发者_StackOverflow社区sp.net.

In that when a customer gives the project detail to the employee, he also uploads a file with that (~ 100 mb).

I don't want that to be uploaded by the customer.

We have all the drives connected in a local network.

What I'm thinking is instead of uploading a file he can give the link to the folder location and by clicking on that link in the browser itself the employee would be able to access the file.

How should I implement this OR please suggest some good practice or method to solve this type of a problem.


Since it's all intranet, you could just have the user provide you a UNC path that the ASP.Net Application Pool identity has access to.

In order to provide the file back to the user, you can either provide the UNC path as an href such as:

<a href="file://///server/path/to/file.txt"/>

Or write the file to the response:

Response.Clear();
Response.Buffer= true;
Response.AddHeader("Content-Disposition","inline;filename=file.txt");
Response.Charset = "";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜