Giter Site home page Giter Site logo

chuckh / filedialog-element Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18 KB

filedialog-element is a Polymer based web component (version >= 1.0) to provide a file dialog for opening and reading local text or binary files from the browser.

License: MIT License

HTML 100.00%

filedialog-element's Introduction

filedialog-element

filedialog-element is a Polymer based web component button (version >= 1.0) that when clicked, provides a file dialog for opening and reading local files as text, binary string, data url, or array buffer from the browser.

The element has 4 assignable properties:

buttonText -- a string to label the button

format -- specifies the reading format. Acceptable values are 'text', 'binarystring', 'url', 'array' (default: 'text')

just_filename -- a boolean which if true the component will fire an event, sending only the file name selected and not read/send the file contents (default: false)

show_progress -- a boolean which controls display of a progress bar during the reading (default: false)


filedialog-element fires the filedialog-result event with the following object:

{fileResult: the file's contents or data url, fileName: the file name selected, fileStatus: OK or an error message}

When just_filename is true then the event filedialog-filename is fired with the following object:

{fileName: the file name selected}


The Bower file bower.json file is provided for installing filedialog-element's two dependencies polymer and progress-element.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.