473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Browse Local Drives from Webpage

Hey all,
need sample/article how to let user browse local drives to select a file
and have the local drive location returned so I can store it in my db,
similar to a file upload but without the actual file transfer and I need the
full path...
any assist is greatly appreciated!!
MTIA
wardeaux
Nov 18 '05 #1
3 2223
You could just use a FileUpload control, but don't actually upload the file.
It should give you the full local path.

"Wardeaux" wrote:
Hey all,
need sample/article how to let user browse local drives to select a file
and have the local drive location returned so I can store it in my db,
similar to a file upload but without the actual file transfer and I need the
full path...
any assist is greatly appreciated!!
MTIA
wardeaux

Nov 18 '05 #2
any suggestions on a good one?

"Haacked" <Ha*****@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
You could just use a FileUpload control, but don't actually upload the file. It should give you the full local path.

"Wardeaux" wrote:
Hey all,
need sample/article how to let user browse local drives to select a file and have the local drive location returned so I can store it in my db,
similar to a file upload but without the actual file transfer and I need the full path...
any assist is greatly appreciated!!
MTIA
wardeaux

Nov 18 '05 #3
You can use a HTML file input control.

<input id="inputfile" style="DISPLAY: none" type="file" name="browser"
runat="server">

Set it up to run at server.

Declare the control as part of page class.

protected System.Web.UI.HtmlControls.HtmlInputFile inputfile;

Then you can use the System.IO namespace to access the file system and the
Browser object to get the filename.

example: string extension =
System.IO.Path.GetExtension(Browser.PostedFile.Fil eName);

Enrique.

"Wardeaux" <wa******@bellsouth.net> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
Hey all,
need sample/article how to let user browse local drives to select a file
and have the local drive location returned so I can store it in my db,
similar to a file upload but without the actual file transfer and I need
the
full path...
any assist is greatly appreciated!!
MTIA
wardeaux

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: (PeteCresswell) | last post by:
Looks like they're doing something with printers because locally-installed printers are available in the client view of the remote PC. Can't make anything happen, however, with drives. Would...
0
by: jason | last post by:
some confusion here. The below code allows me to save a local file to my web server and somehow because the field type is file a local file browse button is rendered. I'm trying to figure out...
1
by: Matt Walker | last post by:
I decided to flesh out my php skills by building a web application which could scan through local files on my intranet (specifically mapped drives on my server) and generate a list of Movies or...
23
by: wylbur37 | last post by:
I'm running an Apache server on my own computer (Windows XP Pro). I wrote a simple PHP script (called test3.php) that I'm running by putting the following URL in the address bar of the browser...
1
by: developing | last post by:
Hello, This time I want to filter the 'browse for file' API so that certain drives/folders cant be accessed. Not sure how to go about this...here is the module I am currently using to browse...
8
by: JohnC | last post by:
RE: Access 2003 My application has been split and the front end runs on client PCs with the back end on a LAN file server. Also I have an updater routine that copies an updated client from the...
1
by: Bill Nguyen | last post by:
One of my apps (running in a terminal server session) needs to access a local USB drive /fash card. Is there a way to access local drives programmatically? Thanks Bill
8
by: =?Utf-8?B?UGV0ZXJX?= | last post by:
I install Visual Studio 2005 Pro on Vista. I open and migrate a 2003 web project to 2005. I attempt to browse an aspx file from the Solution Exploer. It displays a blank html page. I create a...
3
by: Swan | last post by:
I'm using the native DriveListBox and DirListBox to allow the user to find and display the location of a file. I need to be able to allow them to select My Network Places in addition to the local...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.