django-cms / django-filer

File and Image Management Application for django
https://django-filer.readthedocs.io/
Other
1.73k stars 574 forks source link

How to add support for markdown file on drag and drop #1432

Closed fanto88 closed 8 months ago

fanto88 commented 8 months ago

When i try to upload a .md file using the drag and drop feature i get this error:

image

While if i upload using the button 'upload file' i don't get any problem at all and the single file is correctly uploaded

django-filer==2.0.2 Django==3.1.14

fsbraun commented 8 months ago

@fanto88 Thanks for reporting this.

I've just tested with django-filer==3.1.0 and the drag and drop of markdown files works fine. It seems to have been fixed since 2.0.2. Upgrading django-filer might be the easiest option. The first version, this bug is fixed, is 2.1. Since an upgrade to 2.1 needs migrations to run, you might consider going to 3.1 directly.

fanto88 commented 8 months ago

@fanto88 Thanks for reporting this.

I've just tested with django-filer==3.1.0 and the drag and drop of markdown files works fine. It seems to have been fixed since 2.0.2. Upgrading django-filer might be the easiest option. The first version, this bug is fixed, is 2.1. Since an upgrade to 2.1 needs migrations to run, you might consider going to 3.1 directly.

Thanks for the quick test. From what I see version 3.X requires django 3.2, but for now I can't upgrade the django version. I will try to find the latest version supported by django 3.1 and upgrade to it, hoping to fix the problem.

fsbraun commented 8 months ago

Start with 2.1?

fanto88 commented 8 months ago

Thanks for the tips, everything seems to work fine right now.