yogiben / meteor-autoform-file

Upload and manage files with #autoForm
MIT License
92 stars 101 forks source link

'accept' option is not attached to the file input tag #107

Open diegonc opened 8 years ago

diegonc commented 8 years ago

Since 54ebd4ba63332ee7d4e3037e2680c19186e3254d (Utilize mpowaga:jquery-fileupload package), the accept attribute is not present in the input file. The template for the upload button is receiving the following data:

+  selectFileBtnData: ->
+    label: @atts.label or 'Choose file'
+    accepts: @atts.accepts

but the template is still referencing accept helper.

Did accepts (plural) meant to support the same functionality as the old accept helper[1]?

If yes, please rename it back to the singular form so you don't have to change documentation or existing apps.

If not then there's a problem :)


[1] For your reference, the commit history affecting this feature:

jc2 commented 8 years ago

+1