def METHOD_NAME(self, request, project_id, job_id, filename):
    """Upload the package files."""
    key = utils.safe_join(f"projects/{project_id}/packages/{job_id}/", filename)
    request_file = request.FILES.get("file")
    sha256sum = utils.get_sha256(request_file)
    md5sum = utils.get_md5sum(request_file)
    metadata = {"Sha256sum": sha256sum}
    bucket = utils.get_s3_bucket()
    bucket.upload_fileobj(request_file, key, ExtraArgs={"Metadata": metadata})
    return Response(
        {
            "name": filename,
            "size": request_file.size,
            "sha256": sha256sum,
            "md5sum": md5sum,
        }
    )