Moved logging of uploading files to separate module