I have a Django application that requires users to upload multiple images per document. The application has django-ckeditor installed, but the uploaded images end up in the same folder set by the CKEDITOR_UPLOAD_PATH
setting. I would like the path to be dynamic, based on the URL scheme.
For example, images uploaded to the CKEditor instance on https://myapp/report/1/finding/5
should reside in /ckeditor_base_path/report/1/finding/5/my_img.png
.
Unfortunately, the URL for the view function that handles setting the path is set by the widget (CKEditorUploadingWidget) before the view creates a context
parameter.
I was hoping to send the parameters URL parameters to ImageUploadView for processing. Any help or advice on this is greatly appreciated.