Upload all incoming MMS attachments to Amazon S3
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
readme_images
spec
.editorconfig
.env
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
app.json
app.rb
config.ru

README.md

Ruby-Media-to-S3

Handles incoming MMS and uploads all attachments to S3 with public access. Created urls are sent back via SMS.

dog link

Build Status

Deploy

Prerequisites

Build and Deploy

Environment Variables Required To Run

Variable Example
Bandwidth User Id u-abc123
Bandwidth API Token t-123abc
Bandwidth API Secret l0remasdfasdipsum
Amazon Access Key Id AKDGLIEUGKLSKG
Amazon Secret Access Key wubbalubba/z/dubbz/dubba/lobze
Amazon region us-east-1
Amazon S3 bucket name (should exists) ruby-mms-dtolb

Run

# Fill .env file with right values

bundle install # to install dependencies

bundle exec puma -p 8080

# Open external access to this app (in another terminal)
ngrok http 8080

# Copy created by ngrok url

Bandwidth Setup

Open your Bandwidth account and create (or use existing) application with

Parameter Example
Messaging Callback https://your_external_host/callback

Assign to this application 1 or more phone numbers.

setup bandwidth

Now you can send MMS to these numbers. All attachments will be uploaded to Amazon S3 bucket and you will receive public urls to them via SMS.