Checksum at upload api not working?

CvH

Active Member
Oct 16, 2020
31
4
28
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: