Modified to able to download the files with query string