fixed logger for upload endpoint