updated files module

create filename in download function, accept query string in urlpath