views:

36

answers:

0

I'm trying to make a django upload progress bar within the django admin. The application is only a small part of the project, therefor I do not want to set the custom upload handler in the settings.py.

The upload_handler can be set with request.upload_handlers.insert(0, UploadProgressHandler(request)) but not within the add_view of the django admin class. The response is this exception: If you try to modify request.upload_handlers after reading from request.POST or request.FILES Django will throw an error.

I also tried doing this with a decorator over the add_view but then I do not know how to access the request.upload_handlers.

Can someone help me out?

related questions