File Upload with Angular Material

WreckingBall picture WreckingBall · Aug 7, 2015 · Viewed 136.2k times · Source

I'm writing an web app with AngularJS and angular-material. The problem is that there's no built-in component for file input in angular-material. (I feel that file uploading doesn't fit the material design, but I need it in my app)

Do you have a good solution for this problem?

Answer

Radin Reth picture Radin Reth · Apr 25, 2016

Nice solution by leocaseiro

<input class="ng-hide" id="input-file-id" multiple type="file" />
<label for="input-file-id" class="md-button md-raised md-primary">Choose Files</label>

enter image description here

View in codepen