|  | Posted by nice.guy.nige on 12/09/06 01:37 
While the city slept, jonesy <3 (3" <jonesy5656@gmail.com) feverishlytyped...
 
 > 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] |