Skip to content

Commit

Permalink
chore: readme - custom attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
AidasK committed Apr 29, 2014
1 parent a9f9fa2 commit 2a7b093
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,10 @@ parameter must be adjusted together with `progressCallbacksInterval` parameter.
* `isDirectory` Pass in `true` to allow directories to be selected (Chrome only, support can be checked with `supportDirectory` property).
* `singleFile` To prevent multiple file uploads set this to true. Also look at config parameter `singleFile`.
* `attributes` Pass object of keys and values to set custom attributes on input fields.
For example, you can set `accept` attribute to `image/*`. This means that user will be able to select only images.
Full list of attributes: http://www.w3.org/TR/html-markup/input.file.html#input.file-attributes
Note: avoid using `a` and `button` tags as file upload buttons, use span instead.
For example, you can set `accept` attribute to `image/*`. This means that user will be able to select only images.
Full list of attributes: http://www.w3.org/TR/html-markup/input.file.html#input.file-attributes

Note: avoid using `a` and `button` tags as file upload buttons, use span instead.
* `.assignDrop(domNodes)` Assign one or more DOM nodes as a drop target.
* `.on(event, callback)` Listen for event from Flow.js (see below)
* `.off([event, [callback]])`:
Expand Down

0 comments on commit 2a7b093

Please sign in to comment.