Interface for direct upload to S3 using the POST API.
Designed for use with the Fine Uploader and Django REST Framework.
This service has a few essential responsibilities:
- Sign policy documents
- Provide an empty response to use as a success action redirect with old browsers (IE 9 and Android 2.3.x) which do not support the File API, instead using a dynamically generated iframe
- Provide an upload-complete callback
See this Fine Uploader blog post for a long explanation of these responsibilities.
This project is functional pre-alpha. Most significantly it needs some documentation.
pip install drf_to_s3
- ...
npm install -g grunt-cli
brew update
brew install chromedriver
brew tap phinze/cask
brew install brew-cask
brew cask install pandoc
virtualenv venv
source venv/bin/activate
pip install -r requirements_dev.txt
foreman run drf_to_s3/runtests/runtests.py
Create .env with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
foreman run drf_to_s3/runtests/runtests.py
-
Create .env with AWS_UPLOAD_BUCKET, AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY
-
Choose a version to test and install it:
./fine-uploader-build.sh version
-
foreman run drf_to_s3/runtests/runtests.py integration
To run them on Sauce Labs:
- Create a Sauce Labs account
- Set SAUCE_USERNAME and SAUCE_ACCESS_KEY in .env
- Install Sauce Connect
- foreman run sh -c 'java -jar ~/code/Sauce-Connect-latest/Sauce-Connect.jar $SAUCE_USERNAME $SAUCE_ACCESS_KEY'
- WITH_SAUCE=1 foreman run drf_to_s3/runtests/runtests.py integration