0

I need to select directory and i checked examples but i have something different <input type='file'/> is not a solution for me.

I want to open like File Dialog in my mvc application and select directory then keep that way and create a file in that way.

I have a example image for this

openfiledialog

Is there any way to do with JS/Html?

Any ideas?

saulyasar
  • 797
  • 1
  • 17
  • 45
  • @Praveen It's not a duplicate - it's simply not possible to create a file client side the way the OP intends to do. – Filburt Jun 19 '18 at 13:13
  • @Filburt Ah... But something similar right? We can do that way... The one in the screenshot is our native file browser. – Praveen Kumar Purushothaman Jun 19 '18 at 13:13
  • I don't want to create file in client side just i want to select one directory and keep that name @Filburt – saulyasar Jun 19 '18 at 13:14
  • @saulyasar so what about *"... and create a file in that way"*? Do you want the use the selected folder name and use it server side? – Filburt Jun 19 '18 at 13:16
  • @Filburt oh sorry thats my fault but my idea is first open that dialog write file name and get that directory so after i want to check that directory has file and create a new one i can do that in server side but i need to select and get directory way – saulyasar Jun 19 '18 at 13:19
  • @Filburt do you have any idea? – saulyasar Jun 19 '18 at 13:40
  • @PraveenKumar my idea is first open that dialog write file name and get that directory so after i want to check that directory has file and create a new one i can do that in server side but i need to select and get directory way – saulyasar Jun 19 '18 at 13:41
  • @PraveenKumar do you have an idea? – saulyasar Jun 19 '18 at 13:41
  • 1
    @saulyasar You can't do it in client side. May be you can do it for your server files. You can't access client's computer from a browser. Not possible mate. – Praveen Kumar Purushothaman Jun 19 '18 at 13:42

0 Answers0