FileUpload with Django

I'm using the ajax-upload code to do a simple AJAX file upload. The issue I'm coming across is the file isn't showing up on the backend after submitting.

The frontend code is pretty basic:

Upload More Images

The backend code (currently in progress) is also pretty basic:

def add_image(request, id):
    print request
    if request.FILES:
        return HttpResponse("{success:true}")
    else:
        return HttpResponse("{success:false, message:'Unable to find FILES}")

8
задан Josh K 20 January 2011 в 17:02
поделиться