Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting file name info from File Field

Status
Not open for further replies.

IS300

MIS
Oct 29, 2003
121
CA
I have a form that has the file input box where users can browse for a file.

All I want is to grab the file name they selected, then put it into a databas. I don't want to actually upload the file or anything.

Is there a way to just grab whatever is in that file field without trying to upload it?

Thanks
 
do you want to grab the file name or whatever is in that file(i mean content of the file). which one??

-DNG
 
I want to grab just the file name, including the source directory. I don't care what file it is. I just want the name of it, without uploading it anywhere.
 
why cannot you just do..

filename=Request.Form("inputboxname")

-DNG
 
may be i am missing something...

end of a very long day...

-DNG
 
That's what I did...but I realize my problem now

Stupid me, I didn't make my field in the database big enough, forgot how long it would be with the path in there as well

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top