react-upload-file icon indicating copy to clipboard operation
react-upload-file copied to clipboard

How to change the input name to add more uploads?

Open zignani84 opened this issue 7 years ago • 1 comments

How to change the input name to add more uploads?

I need to insert several images one underneath the other, I do not want it to be a multiple input, I want it to be single with different names to be able to insert one by one. How can I do this?

zignani84 avatar Oct 04 '17 15:10 zignani84

I also want to know this. I found out that if you stack in the same DOM two <ReactUploadFile/> components they will both generate a <input type="file"/> component with the same name attribute ("ajax-upload-file-input"). This generates many issues because on the moment of file choosing and uploading, the script won't know how to distinguish between those 2 components. This leads to a number of problems... PLS FIX!!!

EDIT: Just noticed that this got fixed on december 22 2017 https://github.com/wubocong/react-upload-file/pull/9#issuecomment-353581015

giovanni-orciuolo avatar Mar 21 '18 17:03 giovanni-orciuolo