dzhuang / django-galleryfield

Django GalleryField with AJAX form widgets for multiple images upload with progress bar and arbitrarily ordering.
MIT License
34 stars 6 forks source link

Forbidden (CSRF token from POST has incorrect length.) #52

Open mirodil1 opened 1 year ago

mirodil1 commented 1 year ago

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.

dzhuang commented 1 year ago

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

mirodil1 commented 1 year ago

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

dzhuang commented 1 year ago

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.