Skip to content

Instantly share code, notes, and snippets.

@dgigafox
dgigafox / SimpleGCSUpload.ex
Created Jul 14, 2021
NEED HELP! Not working yet.
View SimpleGCSUpload.ex
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"