# Uploading checksum through client

**URL:** <https://community.sonatype.com/t/uploading-checksum-through-client/12873>\
**Category:** Sonatype Nexus Repository\
**Tags:** integrations, nexus-repository\
**Created:** [July 9, 2024, 11:58am UTC](https://community.sonatype.com/t/uploading-checksum-through-client/12873 "2024-07-09T11:58:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kb.login](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kb.login](https://community.sonatype.com/u/kb.login)\
**Post date:** [July 9, 2024, 11:58am UTC](https://community.sonatype.com/t/uploading-checksum-through-client/12873/1 "2024-07-09T11:58:59Z")

</div>

I want to upload checksum along with the artifact that I upload to NEXUS repository. Is there a REST API header or any other means that can be used to do that?  
JFrog Artifactory allows to do this by passing checksum headers in its REST API. I’m looking for something similar.

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [July 9, 2024, 7:49pm UTC](https://community.sonatype.com/t/uploading-checksum-through-client/12873/2 "2024-07-09T19:49:28Z")

</div>

What is the goal with the checksum?

---

<div class="post-metadata">

**Author:** ![kb.login](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kb.login](https://community.sonatype.com/u/kb.login)\
**Post date:** [July 10, 2024, 5:08am UTC](https://community.sonatype.com/t/uploading-checksum-through-client/12873/3 "2024-07-10T05:08:14Z")

</div>

I build a code in a server and use Nexus to store the output artifact. After I have built I will calculate the checksum and then I will upload the artifact to Nexus, I would like to verify that the checksum calculated post build in my server matches with the checksum that Nexus calculates post an artifact is uploaded. If it doesn;t then I will delete the artifact in Nexus and then retry the upload to ensure that the checksum matches with what i calculated post build.

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [July 10, 2024, 4:28pm UTC](https://community.sonatype.com/t/uploading-checksum-through-client/12873/4 "2024-07-10T16:28:39Z")

</div>

Nexus doesn’t provide a way to validate a checksum provided via a header. I’ve passed it along as a suggestion, but for the moment you’d need to use the REST API to retrieve information about the asset and validate the checksum on the client.

---

<div class="post-metadata">

**Author:** ![kb.login](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kb.login](https://community.sonatype.com/u/kb.login)\
**Post date:** [July 14, 2024, 7:12am UTC](https://community.sonatype.com/t/uploading-checksum-through-client/12873/5 "2024-07-14T07:12:11Z")

</div>

OK. As you suggested, I will download the checksum from NEXUS and compare it with what I calculated locally for the verification.
