file upload download and logging