Skip to content

Instantly share code, notes, and snippets.

View dgigafox's full-sized avatar

dgigafox

View GitHub Profile
@dgigafox
dgigafox / SimpleGCSUpload.ex
Created July 14, 2021 15:25
NEED HELP! Not working yet.
defmodule SimpleGCSUpload do
@moduledoc """
Based on https://gist.github.com/chrismccord/37862f1f8b1f5148644b75d20d1cb073 but should be compatible with
Google Cloud Storage
"""
@doc """
Signs a form upload.
The configuration is a map which must contain the following keys:
* `:region` - The AWS region, such as "us-east-1"