def METHOD_NAME(pathname, **kwargs):
    mime_types = kwargs["mime_types"]
    uid = kwargs["uid"]
    gid = kwargs["gid"]
    destination = kwargs["destination"]
    logger = kwargs["logger"] if "logger" in kwargs and kwargs["logger"] else logging
    logger.info(f"{scriptName}:\t👓\t{pathname}")
    if os.path.isfile(pathname) and os.path.isdir(destination):
        time.sleep(0.1)
        try:
            os.chown(pathname, uid, gid)
            # get the file magic mime type
            fileMime = magic.from_file(pathname, mime=True)
            if fileMime in mime_types:
                # looks like this is a compressed file, we're assuming it's a zeek log archive to be processed by filebeat
                logger.info(f"{scriptName}:\t🖅\t{pathname} [{fileMime}] to {destination}")
                shutil.move(pathname, os.path.join(destination, os.path.basename(pathname)))
            else:
                # unhandled file type uploaded, delete it
                logger.warning(f"{scriptName}:\t🗑\t{pathname} [{fileMime}]")
                os.unlink(pathname)
        except Exception as genericError:
            logger.error(f"{scriptName}:\texception: {genericError}")