Add files...
 

The work involved

Template

{% load jfutags %} 
{% jfu 'photo_upload_form.html' %} 

photo_upload_form.html

{% extends 'jfu/upload_form.html' %}

{% block JS_OPTS %}
sequentialUploads: true,
acceptFileTypes: /(\.|\/)(png|gif|jpe?g)$/i
{% endblock %}
 

urls.py

from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static

from photos import views

urlpatterns = patterns('',
    url( r'^$', views.Home.as_view(), name = 'home' ),

    url( r'upload/', views.upload, name = 'jfu_upload' ),
    url( r'^delete/(?P\d+)$', views.upload_delete, name = 'jfu_delete' ),
)

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) 
 

views.py

import os
from django.conf import settings
from django.core.urlresolvers import reverse
from django.views import generic
from django.views.decorators.http import require_POST
from jfu.http import upload_receive, UploadResponse, JFUResponse
from photos.models import Photo

class Home( generic.TemplateView ):
    template_name = 'base.html'

    def get_context_data(self, **kwargs):
        context = super( Home, self ).get_context_data( **kwargs )
        context['accepted_mime_types'] = ['image/*']
        return context

@require_POST
def upload( request ):
    file = upload_receive( request )

    instance = Photo( file = file )
    instance.save()

    basename = os.path.basename( instance.file.path )
    
    file_dict = {
        'name' : basename,
        'size' : file.size,

        'url': settings.MEDIA_URL + basename,
        'thumbnailUrl': settings.MEDIA_URL + basename,

        'deleteUrl': reverse('jfu_delete', kwargs = { 'pk': instance.pk }),
        'deleteType': 'POST',
    }

    return UploadResponse( request, file_dict )

@require_POST
def upload_delete( request, pk ):
    success = True
    try:
        instance = Photo.objects.get( pk = pk )
        os.unlink( instance.file.path )
        instance.delete()
    except Photo.DoesNotExist:
        success = False

    return JFUResponse( request, success )