respondcreate / django-versatileimagefield

A drop-in replacement for django's ImageField that provides a flexible, intuitive and easily-extensible interface for quickly creating new images from the one assigned to the field.
http://django-versatileimagefield.readthedocs.io/
MIT License
531 stars 88 forks source link

Versatileimagefiled with secured urls #148

Open Benjamin-Klangkuppler opened 5 years ago

Benjamin-Klangkuppler commented 5 years ago

Hi folks, this is not directly in issue but maybe an feature request. Im currently developing a django site which enables users to share different media. To secure this media from unwanted access i implemented a ['X-Accel-Redirect'] function which checks weather the signed in user has the right to the corresponding media. I replaced the standard MEDIA_URL by an own SECUREMEDIA_URL. Thumbnail creation works fine but the returned url path contains the MEDIA_URL, is there any possibility to overwrite this behaviour?