javascript – Html File enter with utilizing the “Picture Library” choice doesn’t work on IOS gadgets in React


I’ve an React hybrid software which ought to allow an person to add a picture. It really works on Home windows and Android in any browser, however on IOS neither in Firefox and Chrome nor in Safari, when utilizing the “Picture Library”.

The choice “Take Picture or Video” really works with out issues, however when utilizing the “Picture Library” choice, it lets me select an Picture however nothing occurs after choice. Debugging with the cell Chrome console counsel that the onChange occasion shouldn’t be getting fired, however I cant discover out why.

                  <enter
                    id='upload-ra'
                    sort="file"
                    settle for="software/pdf, picture/*"
                    onChange={(occasion) => {
                        console.log(occasion.goal);
                    }}
                   />

Leave a Reply