Click here to Skip to main content
15,912,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a some video files and i want to store it in custom user selected folder in asp.net with c#....

I only want to show the path where to store their files....

Please help...

Thanks in advance..

What I have tried:

I have tried to find out the folder browse dialog box but there is no control for this problem....
Posted
Updated 3-Apr-16 23:51pm
Comments
F-ES Sitecore 4-Apr-16 5:14am    
Not quite sure what you're wanting to do, but the upload box is for selecting a file from the client to upload and that's all you can do with it.
Vishnu Vachhani 4-Apr-16 5:21am    
I just want to ask to user that where to save his/her files....
Only folder path not file path...
F-ES Sitecore 4-Apr-16 5:44am    
On the client or the server? You can't present an open dialogue on the client that shows the file system on the server, and you can't ask the client for the location to save a file, neither can you push a file to a given folder. When you push the file to the client they get the standard Save\Open choice that allows them to choose where to save the file to.
FARONO 4-Apr-16 5:29am    
In a Forms application you would use FolderBrowserDialog, I'm not sure how to in a webapplication. You could always create your own usercontrol ofcourse..
Vishnu Vachhani 4-Apr-16 5:48am    
Ya, I know...
Thanks..
But there is no other 3rd party control for folder browser....

1 solution

There is no control for this in a web application, because the last thing you want to do in a web application is give your users any kind of access directly to your webserver file system! And remember: in a "standard" file or folder browser dialog, a right click on a file allows you to rename, delete, ... you do not want your users doing that to files on your server. :OMG:

If you need this kind of thing, then you will have to create your own, which should strongly restrict where the user can look, and what he can see and do when he gets there.
I'd suggest that a paged list of files with search and filter facilities would be a better idea.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900