开发者

Open file from specific disk

What I want to achieve is a bit complicated to explain, so I hope I'll be clear enough !

I'm starting to write a Django application for my company. It is installed on a local server which has access to some disks, that the users have access to also.

I want to be able to list some files on these disks and when a user clicks on one through the web interface, it opens it on his machine. But I don't want to download it on the user's machine, I want the user machine to open the file at its real location.

How can I achieve that ? And please let me know if I'm not being clear enough, it's really important that I can have thi开发者_运维技巧s functionnality on my application.


Use the file:// protocol instead of http:// in your links.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜