# Enabling version control on DFU and Single file upload artifacts

**URL:** <https://hub.mender.io/t/enabling-version-control-on-dfu-and-single-file-upload-artifacts/6744>\
**Category:** General Discussions\
**Created:** [April 18, 2024, 2:06pm UTC](https://hub.mender.io/t/enabling-version-control-on-dfu-and-single-file-upload-artifacts/6744 "2024-04-18T14:06:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Utsav\_Shah](https://avatars.discourse-cdn.com/v4/letter/u/3ab097/32.png) [@Utsav\_Shah](https://hub.mender.io/u/Utsav_Shah)\
**Post date:** [April 18, 2024, 2:06pm UTC](https://hub.mender.io/t/enabling-version-control-on-dfu-and-single-file-upload-artifacts/6744/1 "2024-04-18T14:06:09Z")

</div>

Hi Community,

I am trying to implement version control of the mender artifacts specially for DFU generated artifact and Single file upload artifact. What I intend to do is have the name of the artifact identical but internally the update file that the artifact would carry will be changed. I tried to change the --software-version flag while creating the artifact but whenever I am uploading it to mender dashboard, it shows the below error :

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/f/fd70df590b2bba38db28a47247c357e75faa2786.png)  
For now if I have any change in the file, I have to create an artifact with a completely new name in order to upload it to dashboard. How do I keep the .mender file name same and yet use some sort of version control to upload a diffrent enclosed file?

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [April 23, 2024, 7:36am UTC](https://hub.mender.io/t/enabling-version-control-on-dfu-and-single-file-upload-artifacts/6744/2 "2024-04-23T07:36:45Z")

</div>

Hi @Utsav_Shah,

The Mender architecture requires that the tuple of (`artifact_name`, `device_type`) is unique in the tenant. The filename of the Mender artifact does not matter. So if you want the `artifact_name` to be constant, then you need to remove the previous artifact before uploading the new one. You can automate this by using the API ([Mender API docs](https://docs.mender.io/api/#management-api-deployments-delete-artifact)).

Greets,  
Josef
