add compatibility with redmine 2.4.1
add accept option to filter files