java ee - How can i keep a file selected from input type="file" -


i have small web application witch contains button witch declared in html <input type="file" name ="b1" value="browse"> use file selected descktop how can keeped name of file , file lot write contains textarea , thanks.

add id <input>:

<input type="file" name ="b1" id="b1" value="browse"> 

in <head>:

<script> var file_name = document.getelementbyid("b1").value; //file_name file </script> 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -