You are here: Re: <input type=file> - return file name without path? « HTML « IT news, forums, messages
Re: <input type=file> - return file name without path?

Posted by nice.guy.nige on 12/09/06 01:37

While the city slept, jonesy <3 (3" <jonesy5656@gmail.com) feverishly
typed...

> Is it possible using <input type="file"> to return the file name
> without the path?

Well.... technically, it is only the filename that is "returned" to the
processing script...

> If not, is there any other way of coding a "browse" button that after
> selecting a file it returns just the file name into the text box?

You could possibly use some client-side javascript to get the filename and
leave the path behind, use a hidden field to hold the actual full path of
the file to be uploaded, and populate a textbox with just the filename, but
it is a bit convoluted. What is your reasoning for this?

> Thanks.

You're quite welcome old bean ;)

Cheers,
Nige

--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. nigel@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация