django-galleryfield icon indicating copy to clipboard operation
django-galleryfield copied to clipboard

Forbidden (CSRF token from POST has incorrect length.)

Open mirodil1 opened this issue 1 year ago • 3 comments

Getting error when start uploading Forbidden (CSRF token from POST has incorrect length.) /en/images-handler/upload/ in admin page, also I am using volt admin template, autocomplete for tags, but it changes styles and js behaviours on some fields if I include GalleryFormMediaMixin.

mirodil1 avatar Jun 14 '23 10:06 mirodil1

Hi, I can't figure out your issue simply by the descriptions above. Do you have a repo that I can view your code?

dzhuang avatar Jun 15 '23 02:06 dzhuang

Hi, sorry the repo is private cannot show, but I used the package as documented

mirodil1 avatar Jun 20 '23 05:06 mirodil1

Thank you for raising the issue. I understand that you provided the Exception of the error, but in order to effectively troubleshoot and resolve the problem, it would be extremely helpful if you could provide us with a minimal, self-contained code example that can reproduce the issue you encountered (e.g., installed_apps, and how you use volt template, and how you use GalleryFormMediaMixin). This will allow us to analyze the problem in detail and provide you with an accurate solution.

dzhuang avatar Jun 22 '23 02:06 dzhuang