Windows server side file list and download
I tried this but now I detect error which cause it doesn't work. When I use echo in give text "Array", I guess it's fine. Now I just need to loop throught this array to get file names - am I right? This doesn't work. Don't use the domain, but the path to the images directory. Even if I use relative path and change print to echo it won't work. Show 6 more comments. I created a website project with VS and try your solution but unfortunately, nothing appears.
Amir Make sure you have directory listing enabled on the directory. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Who is building clouds for the independent developer? Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta. Now live: A fully responsive profile.
JavaScript is a client-side language aside from things like Node. It has very limited abilities when it comes to things on a server. I just tried it, and it does work to retrieve the contents of the page. Why does the web page list all files in that directory?
It sounds like a security hole to me. Because I told it to by disabling directory listing. As shown Javascript can get a webpage, yes, but it cannot search a file structure on a server.
All such information and related graphics are provided "as is" without warranty of any kind. NET on. NET Framework 3. Need more help? Expand your skills. Get new features first. Was this information helpful? Yes No. Thank you! Any more feedback? The more you tell us the more we can help. Can you help us improve? Resolved my issue. Clear instructions. Easy to follow. No jargon. Pictures helped. Didn't match my screen.
Incorrect instructions. Too technical. Not enough information.
0コメント