Minio uses the generated pre-signed upload link to upload the file and report SignatureDoesNotMatch, The request signature we calculated does not match the si

Minio client calls the method, if the generated pre-signed upload link is as follows:

http://192.168.1.167:80/image/20210105154215.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20210105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210105T074217Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=4114dc85a457eaf932bfb6619a1b2272f69bb1f1b108fcbda11c4c9b850da74e

Upload error
Insert picture description here

Upload a signature exception in postman

Solution:
Remove the 80 port number in the link and
change it to:

http://192.168.1.167/image/20210105155149.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minio%2F20210105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210105T075150Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=dd8061cbe9c1720690c3054746a1fae6e44bc9c66e7e6a35fc83e94225053102

After uploading successfully
Insert picture description here

Guess you like

Origin blog.csdn.net/u011511086/article/details/112239412