Fix file extension for client. Deleting file link in file link table on downloading.