Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

file name in react input

<input
        id="file_input_file"
        className="none"
        type="file"
        ref={inputRef }
        onChange={(e)=>{
          console.log('---')
          console.log(inputRef.current[0].files[0].name)

        }}
      />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #react #input
ADD COMMENT
Topic
Name
7+9 =