I have this curl command for posting a file to an S3 bucket which works fine, but I would rather use the HTTP node. I couldn't figure out the right syntax as I constantly get bad request back. For example I tried adding to the body something like this:
key=xyz&bucket=name&policy=xyz
I also tried with the values in double quotes e.g. key="xyz".
I've tried pretty much every variation I can think of and can't seem to get it to work. Does anybody have any idea how to put this in the HTTP node and what the Body would look like?
Curl Command:
curl -X POST ^
-F "key=xyz" ^
-F "bucket=bucketname" ^
-F "X-Amz-Algorithm=AWS4-HMAC-SHA256" ^
-F "X-Amz-Date=20241008T215937Z" ^
-F "X-Amz-Security-Token=xyz" ^
-F "Policy=xyz" ^
-F "Content-Type=text/csv" ^
-F "X-Amz-Credential=xyz" ^
-F "file=C:/some/path/test-ignore.csv" ^
"https://s3.us-west-2.amazonaws.com/services.file-validation"