Many users have a need to disallow users from uploading their own media to the server (neutronX#106). Prior django-markdownx did not natively support disabling media uploads. As a convienience feature I added the settings param MARKDOWNX_UPLOAD which defaults to True. When set to False it intercepts the post request in ImageForm and returns the ValidationError 'Media uploads to the server are disabled.'
Many users have a need to disallow users from uploading their own media to the server (neutronX#106). Prior django-markdownx did not natively support disabling media uploads. As a convienience feature I added the settings param
MARKDOWNX_UPLOAD
which defaults to True. When set toFalse
it intercepts the post request in ImageForm and returns the ValidationError'Media uploads to the server are disabled.'