https://github.com/zecat/iron-input-file
https://github.com/zecat/iron-input-file
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zecat/iron-input-file
- Owner: Zecat
- Created: 2015-11-17T07:18:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-17T20:07:29.000Z (over 10 years ago)
- Last Synced: 2025-06-27T15:08:10.495Z (12 months ago)
- Language: HTML
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iron-input-file
*with Polymer 1.0*
iron-input-file extends the native input element and
gives it an Api.
This element provides a convenient way to use an hidden input type="file" without having to bind the 'click' event manually and gives you the opportunity to modify files array.
To use it, just gives it an id and use the methods it provides. The element exposes the chosen files in the bindFiles attribute.
Don't directly bind to 'value' or 'files' attribute, for security reasons, browsers does not allow us to manipulate them as we please. To use it in a form, create a custom element wrapping iron-input-form and implementing IronFormElementBehavior, and use this custom element in an iron-form.
Example: