473,395 Members | 2,437 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,395 software developers and data experts.

how to i get full file path?.... while i'm using fileupload field

I used file browse field... I need to take the value which is in that text filed... (that means how do get full path of the selected file) please help me...
Aug 20 '10 #1
1 2127
Aimee Bailey
197 Expert 100+
.Net has many solutions to situations like this, I encourage you to check out MSDN on the subject of System.IO as this will most likely answer any more questions you may have. Here for example is how we could get information about a file:

Expand|Select|Wrap|Line Numbers
  1. string filename = "";
  2. FileInfo info = new FileInfo(filename);
  3. string path = info.DirectoryName;
  4.  
Remember to reference System.IO!

Aimee.
Aug 22 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Wayne Aprato | last post by:
I am using code kindly provided by the Access Web to capture a file path and insert it into a form. The relevant part of the code follows: Function GetOpenFile(Optional varDirectory As Variant,...
4
by: supster | last post by:
I have the full file path of a file stored as a string and I'de like to get the file size in bytes. What is the most efficient way of doing this with a static method from the File class or...
6
by: ad | last post by:
How can we assign file extension using FileUpload?
0
by: Revolution | last post by:
Dear All, I had looked into the Shell Extension Sample provided by MSDN. In that it shows the menu name while right click. I get the folder name but I want to know the file name (selected...
2
by: Sridhar | last post by:
Hi, I have a web form where it has a <input type=file id=file1> control. I have an Upload button to upload the file. WHen I click on browse and select one file, it is showing the full file path...
3
by: Vibhu | last post by:
Hello All, I have a input box on the HTML page with the type set to file. What I want is that when the value changes in the file textbox, it should give me the full file path. I have even tried...
3
by: Ken | last post by:
I have application files under "C:\$\TestApp". there is a test.xml file under "C:\$\TestApp\test.xml" I made a virtural directory in IIS as "TestApp" currently in application, "Request.MapPath(...
7
by: Ken | last post by:
I have application files under "C:\$\TestApp". there is a test.xml file under "C:\$\TestApp\test.xml" I made a virtural directory in IIS as "TestApp" currently in application, "Request.MapPath(...
2
by: rinkudhimar | last post by:
I want to write using fwrite and upload the file without using File Field or Browse option. Actually I want to upload static file after writing it useing fwrite and as soon as it gets uploaded it...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.