I am trying to implement a upload button. My issue is I need something like OpenFileDialog but which lets me select a folder instead, so I can loop for all the filenames in that directory(which will be inserted into the db).
Is there a control which allows me to select a folder?
I am trying to implement a upload button. My issue is I need something like OpenFileDialog but which lets me select a folder instead, so I can loop for all the filenames in that directory(which will be inserted into the db).
It's not possible to do with asp.net. Due to security reasons, we cannot access to that level in client machine with asp.net. You better try this with silverlight. Post your question in the
silverlight forums and see what those folks got to say.
TheFreeman_A...
Member
26 Points
23 Posts
How to get directory selected Path.
Dec 26, 2012 07:15 AM|LINK
Hi,
I am trying to implement a upload button. My issue is I need something like OpenFileDialog but which lets me select a folder instead, so I can loop for all the filenames in that directory(which will be inserted into the db).
Is there a control which allows me to select a folder?
Thanks,
TheFreeman
urenjoy
Star
12347 Points
1857 Posts
Re: How to get directory selected Path.
Dec 26, 2012 07:19 AM|LINK
Check following:
http://forums.asp.net/t/1203189.aspx
http://forums.asp.net/t/1517975.aspx
NadeemZee
Participant
942 Points
178 Posts
Re: How to get directory selected Path.
Dec 26, 2012 07:22 AM|LINK
Hi you can check the following link:
http://www.codeproject.com/KB/aspnet/multiuploads.aspx
http://www.codeproject.com/aspnet/FlashUpload.asp
Good Luck
Do FEAR (Face Everything And Rise)
Please mark as Answer if my post helps you..!
Do FEAR (Face Everything And Rise)
Please mark as Answer if my post helps you..!
geniusvishal
Star
14266 Points
2810 Posts
Re: How to get directory selected Path.
Dec 26, 2012 07:28 AM|LINK
Refer:
http://forums.asp.net/t/1865047.aspx/1?Upload+folder+complete+at+a+time
http://forums.asp.net/post/5212301.aspx
My Website
www.dotnetvishal.com
Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: How to get directory selected Path.
Dec 27, 2012 07:50 AM|LINK
Hi,
As far as I know, you can't upload a folder directly. If you want to upload it, you can do it using two methods below:
1. Follow zip your folder and upload it.
2. Use AjaxFileUpload. It is an ASP.NET Ajax control which enables you to upload multiple files to the server asynchronously.
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store
Ruchira
All-Star
43018 Points
7031 Posts
MVP
Re: How to get directory selected Path.
Dec 28, 2012 09:10 AM|LINK
Hello,
It's not possible to do with asp.net. Due to security reasons, we cannot access to that level in client machine with asp.net. You better try this with silverlight. Post your question in the silverlight forums and see what those folks got to say.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.