I want to upload a file to digital ocean spaces. This suppose to be S3 compatible.
However I do not want to use their library, I want standalone file.
Laste days, I try several examples, including one from their website, but nothing worked.
I have S3 uploader binary and it works fine, also rclone works OK, so my credentials are fine.
Note I do not looking for pre-signed URL.
Example in shell + curl will be also sufficient because I will be able to rewrite to php.
I finally was able to fix errors from DigitalOcean own script.
Here is working curl:
The file is based on DigitalOcean example from here:
https://docs.digitalocean.com/reference/api/spaces-api/#hello-world-program
After that I did working PHP class
You can find two files here:
https://github.com/nmmmnu/S3Upload