Checksum at upload api not working?

CvH

Member
Oct 16, 2020
25
4
23
Germany
Hi, I try to upload with curl a iso file via the api to the storage, that works well (Prox 8.2).

Now I tried to add the checksum check but nothing happens. I am not sure what happens or if it should work at all ?
I get the same output regardless if the checksum is correct or not (file get uploaded anyway). If I drop the whole checksum args its still the same output.

Code:
curl -k -H 'Authorization: PVEAPIToken=uploader@pve!upload_template=...-...-...-...-...' \
  -F "content=iso" \
  -F "filename=@test.iso" \
  -F "checksum=752bc3f510182608b3c76bf2acccd83f88f8cf6ed6589a2ef465e5e15d01c0a8" \
  -F "checksum-algorithm=sha256" \
  https://10.10.10.10:8006/api2/json/nodes/proxserver1/storage/local/upload

{"data":"UPID:proxserver1:00173B9E:13695F20:66990621:imgcopy::uploader@pve!upload_template:"}

So I am not sure if I do it wrong or its a bug ? The forum and the google search doesn't showed a search hit so I am not sure anyone tried that yet :)
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!