Constrain what files you can see with angularjs ng-flow

963 views Asked by At

I'm trying to implement a flow file uploader but I can't see how to make it that the user can only select image files. I copied the example so I have

<div
    data-flow-files-submitted="$flow.upload()"
    flow-file-added="!!{png:1,gif:1,jpg:1,jpeg:1}[$file.getExtension()]"
    name="introduction-picture-upload">

But I still see all files available in my upload window, not just images. Any help would be appreciated - thanks!

1

There are 1 answers

2
Caroline Clifford On

Seems it's

<button
    flow-btn
    flow-attrs="{accept:'image/*'}">

Not well documented !