Skip to content

Instantly share code, notes, and snippets.

Avatar

Maxime BACONNAIS Maxou44

View GitHub Profile
View scaleway-presign-put.js
const AWS = require('aws-sdk');
const fetch = require('node-fetch');
const fs = require('fs');
const path = './file.txt';
const filename = 'MyFile.txt';
const bucket = 'processing-storage';
const s3 = new AWS.S3({
endpoint: new AWS.Endpoint('https://s3.fr-par.scw.cloud'),