Pagination on files#index, fixes #303