Odpowiedz

11

Trzeba owinąć wejście z komponentu i dodać containerElement nieruchomości z etykietą „” wartość ...

<RaisedButton 
    containerElement='label' // <-- Just add me! 
    label='My Label'> 
    <input type="file" /> 
</RaisedButton> 

można przeczytać więcej na ten temat w tym GitHub issue.

+0

Jak używać tego obiektu plików? HTML FileReader nie działa:/ Rozważając, użyłem '' 'handleFile = file => { ..}' – Paulo

Powiązane problemy