Can i browse file stored on Remote server through

2019-08-07 04:12发布

问题:

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.