Click here to Skip to main content
16,012,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

How to choose a Folder Location then get all files from that Folder using file upload control
without select file from file upload Control,
Thanks in Advance.
Posted
Updated 12-Feb-14 2:53am
v2
Comments
[no name] 10-Feb-14 6:45am    
Got your point but it will be more clear if u can give one small example how you want the thing to work..
Kornfeld Eliyahu Peter 10-Feb-14 6:48am    
Have you done anything so far? Show some effort (code or searching)! As is it ain't a question...

You can't, not from the server. Or at least, you can't in 99.99% of circumstances.

The server has no access to the client file system, or to even know if the client has a file system.
The folder the FileUpload control starts browsing in is completely browser dependent - you can;t control it.
 
Share this answer
 
Comments
Mohankumar.Engain 10-Feb-14 7:09am    
Then How to choose location, to get a partucular directory without selecting a file
[no name] 12-Feb-14 8:56am    
Best thing I would suggest you mohan, if you are performing xyz operations on a file. better upload the file to server and later can do it.
Create a folder in server side.
You need to understand the concept.

Think


You browse some website, then without your knowledge it takes a file from your system and do some operations on it on Server. It can then do anything with that file, you don't have any control over it.

Why this happens?


If this is possible, then it is hack. That's why, it is not possible. Browser's security feature don't allow you to select anything from Client's system, without his/her permission and that should be the ideal behaviour. Otherwise everybody will scare to visit websites.

So, what to do now?


Don't do this. Ask for user's permission and get the file. :)
 
Share this answer
 
Comments
JoCodes 12-Feb-14 10:50am    
5 ,Was good one , Tadit.
Thanks JoCodes. :) :) :)

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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