Can i browse file stored on Remote server through simple <input type=“file”> control in asp.net MVC 2.0

六眼飞鱼酱① 提交于 2019-12-11 06:49:42

问题


I have a file control of HTML <input type="file">

And i want to browse file from the remote server.

I want to locate a file which is stored on remote server.

For eg. If my website is hosted on http://192.168.56.116

and if there is a folder on server http://192.168.56.116/UploadedFiles

then i should be able to browse files contained in that folder.

Is this thing is possible in asp.net MVC 2.0 ???

Please suggest me any alternative or solution for this problem.

Thanks, Manoj


回答1:


There is no way to do it.

You should use special web file browser - for example, CKFinder. http://ckfinder.com/




回答2:


You can do it via IIS ..

Its not advised but its possible, you simply need to enable directory browsing in IIS.

Just be careful as anyone can view the contents of the directory unless you password protect it.



来源:https://stackoverflow.com/questions/7804507/can-i-browse-file-stored-on-remote-server-through-simple-input-type-file-con

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!