Moved file's extension detection to users service due to necessary ability to customize filename.