I'm trying to use a react-bootstrap file input with jquery fileupload()
. With straight jquery I would do $('#fileUpload').prop('files')
to get the files to pass to the fileupload call. However, I don't know how to get the files correctly with react-bootstrap.
<Input type='file' label='Upload' accept='.txt' ref='fileUpload' buttonAfter={uploadFileButton}/>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…