Created
March 1, 2020 14:20
-
-
Save drazisil/aae85c585abee39f8f44ef23e8f98a52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const result = await superagent | |
.put(`${putURL}`) | |
.send(uploadFile) // sends a JSON post body | |
.set("Content-Type", "application/x-gzip") | |
.set("Content-Encoding", "gzip") | |
.set("x-amz-acl", "public-read") | |
.set("Content-Length", Buffer.byteLength(uploadFile)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment