AA sample webapp for uploading image files directly from a browser to Manta
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
diagram.svg
index.html
main.js
package.json

README.md

Manta Browser Uploads

This is a small application that illustrates how to use CORS, Manta signed URLs and Ajax in order to upload files directly to Manta. Doing this allows you to bypass your own servers to save on bandwidth.

Setup

The only dependency this application has is manta:

npm install manta

Then

npm start

Will get you going. Point your browser at http://127.0.0.1:1234.

Details

There are really two parts to this: the server and "webapp". In this particular example, the webapp is a very simple single page, that does rely on JQuery. The code is all commented, but the basic gist is:

Sequence Diagram

License

BSD, I guess, because that's the npm default. Honestly, I don't really care. Do whatever you want with this.