neutronX / django-markdownx

Comprehensive Markdown plugin built for Django
https://neutronx.github.io/django-markdownx/
Other
863 stars 153 forks source link

Image upload not working. #138

Closed drivasperez closed 6 years ago

drivasperez commented 6 years ago

I haven't been able to get the drag-and-drop media upload function working. I'm very new to Django, so it might well be that I'm doing something really stupid, but I've spent several hours trying to work out what the issue might be, or find anyone in the usual places who has had the same issue, and haven't been able to.

My /media url is set up properly and works fine: if I put an image.jpg in my app's media folder and try to access it at website.com/media/image.jpg, it shows up in the browser. But after following the "Getting Started" section in the docs, and changing a TextField in my model into a MarkdownxField, dragging an image onto the corresponding MarkdownxFormField doesn't do anything. Any text in the form field greys out, but no image is ever uploaded.

Otherwise everything, works fine. Text is formatted according to the markdown in the field, and rendered appropriately next to it.

Is there an extra setup step I'm missing? Or is this a known issue with Django 2.1?

JeroenvO commented 6 years ago

Known issue: https://github.com/neutronX/django-markdownx/issues/133 The newest version directly from git works.

adi- commented 6 years ago

Yes, git already has fixed version. PyPi update is on the way...

drivasperez commented 6 years ago

Thanks a lot, and sorry for the issue duplication.

adi- commented 6 years ago

FYI: updated on PyPi

drivasperez commented 6 years ago

I just saw the update! Thanks again!

On Oct 18 2018, at 8:22 pm, adi notifications@github.com wrote:

FYI: updated on PyPi — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/1539890697.local-b8b37217-eb76-v1.4.2-f587b7b7@getmailspring.com/0?redirect=https%3A%2F%2Fgithub.com%2FneutronX%2Fdjango-markdownx%2Fissues%2F138%23issuecomment-431129551&recipient=cmVwbHkrMDAwMjdiZjI1NzAxYTg3YjkwODJkMjY2MTliNjkyYTllYWM5ZmFlMDg1MDFjMTFiOTJjZjAwMDAwMDAxMTdlMDlmN2Y5MmExNjljZTE2MWUyYTczQHJlcGx5LmdpdGh1Yi5jb20%3D), or mute the thread (https://link.getmailspring.com/link/1539890697.local-b8b37217-eb76-v1.4.2-f587b7b7@getmailspring.com/1?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAJ78pZXrx8OxhD7Gq07gNaQ7Z_b4SQDks5umNT_gaJpZM4Xj6-w&recipient=cmVwbHkrMDAwMjdiZjI1NzAxYTg3YjkwODJkMjY2MTliNjkyYTllYWM5ZmFlMDg1MDFjMTFiOTJjZjAwMDAwMDAxMTdlMDlmN2Y5MmExNjljZTE2MWUyYTczQHJlcGx5LmdpdGh1Yi5jb20%3D).