Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > FIleUpload and file name saving

Reply
Thread Tools

FIleUpload and file name saving

 
 
nicknack
Guest
Posts: n/a
 
      01-15-2007
Hello.
I would like to give my user the option to browse his files (like the
simple fileUpload control do) and after selecting the file (and when
the fileUpload control hold in his text box the full path and file
name) I want to press another button and get the path+file name as a
string.

I want to do this with out actually upload the file. I use the
fileupload just for his browsing option.

the problem is that after selecting the file, the fileupload have a
property called "fileName" that only return the file name and not the
path.

Also, if i type a file name myself and not choosing it with the browse
- It doesn't even recognaize it as a file name.

Any help?
How can I have a simple browsing control that save path+file name?

thanks!

 
Reply With Quote
 
 
 
 
Saber
Guest
Posts: n/a
 
      01-15-2007
Hello,

try it:

FileUpload1.PostedFile.FileName

"nicknack" <> wrote in message
news: oups.com...
> Hello.
> I would like to give my user the option to browse his files (like the
> simple fileUpload control do) and after selecting the file (and when
> the fileUpload control hold in his text box the full path and file
> name) I want to press another button and get the path+file name as a
> string.
>
> I want to do this with out actually upload the file. I use the
> fileupload just for his browsing option.
>
> the problem is that after selecting the file, the fileupload have a
> property called "fileName" that only return the file name and not the
> path.
>
> Also, if i type a file name myself and not choosing it with the browse
> - It doesn't even recognaize it as a file name.
>
> Any help?
> How can I have a simple browsing control that save path+file name?
>
> thanks!
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jakarta Commons FileUpload, error in file name extraction. i730lover Java 0 07-21-2006 03:52 PM
FileUpload, Wizard, and saving the data David Thielen ASP .Net Web Controls 5 05-04-2006 06:57 AM
FileUpload name goes away David Thielen ASP .Net Web Controls 1 03-21-2006 09:24 AM
print("my name is {name}, and {age}-year old {gender}", name, age, gender); =?iso-8859-1?B?bW9vcJk=?= Java 7 01-02-2006 04:39 PM
EXCEL question saving a file saving the the first column as read only Luis Esteban Valencia ASP .Net 0 01-06-2005 07:02 PM



Advertisments