@Override
	public Response download(DownloadFileRequest request) throws IOException {
		DownloadTicket ticket = request.getTicket();
		File file = new File(dir+"/"+ticket.getFilename());
		if(ChecksumUtils.verifyChecksum(ticket.getUsername(), file, 1, ticket.getChecksum())) {
			byte[] data = FileUtils.readFile(dir,ticket.getFilename());
			if(data == null) return new MessageResponse("Cannot read file");
			return new DownloadFileResponse(ticket,data);
		} else {
			return new MessageResponse("Failed to verify checksum");
		}
	}