basic ember.js django app showing file upload in action
JavaScript Python CSS HTML
Switch branches/tags
Nothing to show
Latest commit 940d3e7 Apr 30, 2015 @toranb Merge pull request #3 from clevernyyyy/patch-1
Update for Django 1.7 per Toran


ember.js web app showing file uploads in action using ember-data

To run this django application

1. mkvirtualenv ember-file-upload
2. pip install -r requirements.txt
3. python syncdb --noinput
4. python runserver
5. http://localhost:8000/
6. select 2 gif or jpg images and click the save button

The images are base64 decoded on the python/django side and dropped in the root project folder

On success look for logo.gif and other.gif

**Files of interest for anyone looking at the ember side of this project

- This file contains the ember views/controllers/models/router

- This file contains the handlebars template

- This file contains the ember-data adapter that will fire off the ajax post

- This file contains the python view that responses to the http post (look for the class NewPerson)

**issues in the current release

1.) After a successful file upload you will see a javascript error

- This is not an ember issue, my python view is half baked + my adapter is half baked (it does however drop a file in the root directory for each image you uploaded)

2.) This is a basic proof of concept so it's not working on IE8 but this isn't ember-data but the django-rest-framework adapter I wrote.

- You can modify the adapter file and replace the FormData element with something more IE friendly if needed

3.) This doesn't work with png images for some odd reason