/s3-http-post-gs

Uploading a File to Filebase Using HTTP POST from Google Script

Primary LanguageJavaScript

s3-http-post-gs

Uploading a File toFilebase Using HTTP POST from Google Script.
Implemented to request authentication with the AWS Signature Version 4 algorithm (AWS4-HMAC-SHA256).

  1. Replace variable values in main.gs to your Provider Credentials
# https://github.com/jadewon/s3-http-post-gs/blob/master/main.gs
const bucket = 'FILEBASE BUCKET NAME';
const accessKeyId = "FILEBASE ACCESS KEY";
const secretAccessKey = "FILEBASE SECRET KEY";
const region = 'us-east-1';
const acl = 'private';
  1. Install clasp via npm
npm install -g @google/clasp
  1. Creates a new google script project.
$ clasp login
$ clasp create --type standalone --title "S3 http post"
$ clasp push
$ clasp open