How to allow the user to select an input file for my SQL AdventureWorks web application?
Posted
by salvationishere
on Stack Overflow
See other posts from Stack Overflow
or by salvationishere
Published on 2010-04-12T17:23:53Z
Indexed on
2010/04/12
17:43 UTC
Read the original article
Hit count: 342
I have a SQL and VS 2008 web application that I need to capture the full file path (directories and file name) from the selected file on the client computer.
So user selects a file and then clicks on one of the buttons which transfers control to my code for processing. So how do I get its file path? I can get the file name, but not the path. Maybe problem is that while testing this web app, I am using the server instead of client machine. And I learned that on a server you cannot read the full file path due to security concerns. Is this true?
If I just want this to work on client machine, which method/class do you recommend? And then how can I test it?
My web app allows the user to select an input file and then map columns from the input .MDF file with columns from the selected Adventureworks table. Finally, after they click on the "Append" button, it adds rows from the input file to that table. So I want to capture the path info after they click this button.
© Stack Overflow or respective owner