i couldn't find any examples about folder dialog in mvc all of them in standart .net. Is there a way to take full path of a folder with a dialog. No need to upload or select files inside that folder. I just need path.
Asked
Active
Viewed 1,038 times
0
-
The file dialog will not set any data unless a file is chosen. – Diodeus - James MacFarlane Dec 04 '13 at 15:47
-
i couldn't explain myself. i didn't want to say file dialog set something. File dialog didn't work for me because i need to select folder not file. – MustafaP Dec 04 '13 at 15:54
-
i couldn't find any examples about folder dialog in mvc all of them in standart .net – MustafaP Dec 04 '13 at 15:55
-
1This has ZERO to do with .NET, this is all about browser behaviour (JavaScript/HTML). A browser's file dialog cannot return a folder, it can only select a file. – Diodeus - James MacFarlane Dec 04 '13 at 16:27
-
so, is there a way to do it with JavaScript or html? – MustafaP Dec 05 '13 at 07:21
-
No, there is not. There is no way to to this at all without writing a browser extension, which the user would have to voluntarily install. Servers really have no business looking at the user's local filesystem. – Diodeus - James MacFarlane Dec 05 '13 at 15:21
-
i did it with return fileresult thanks for help – MustafaP Dec 05 '13 at 15:40