physicsboy
physicsboy

Reputation: 6316

File upload with Polymer & material design

I'm wanting to make a paper/material design version of the <input type="file">, can anybody suggest anything for my code below?

<paper-input type="text" id="fileName" placeholder="File" readonly></paper-input>
<paper-button id="changePicture" class="changePicture">Upload Picture</paper-button>

Upvotes: 0

Views: 2027

Answers (2)

Hyyan Abo Fakher
Hyyan Abo Fakher

Reputation: 3537

You need to use paper-input-container to get the same behavior and material design as paper-input.

If you are brave enough to explore others code you can take a look at Vaadin-upload element :)

Upvotes: 1

Related Questions