Skip to content

jonatron/django_media_uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Media Uploader

A resuable django app that provides views, models and template tags to implement resumable HTML5 uploads. Uploads can be associated with any other model instance. Uses resumable.js.

Before installing pillow, please run: sudo apt-get install libjpeg-dev to ensure jpeg support

Template Tag:

{% load media_uploader %}
{% upload_js item %}

Add to your URLs:

url(r'^media_uploader/', include('media_uploader.urls', namespace='media_uploader')),

Add to your INSTALLED_APPS:

'media_uploader',

Example JS for showing recent uploads: (TODO: add recently_uploaded view)

$(function() {
    function refresh_recent_uploads() {
        $('#recent_uploads').load('{% url 'mcc:recently_uploaded' item.id %}', function() {
        });
    }

    $('#refresh_uploads').click(function() {
        refresh_recent_uploads();
    });

});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published