Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image upload not working #81

Open
GovardhanCel opened this issue Jan 27, 2020 · 4 comments
Open

Image upload not working #81

GovardhanCel opened this issue Jan 27, 2020 · 4 comments

Comments

@GovardhanCel
Copy link
Contributor

Description
Image upload is not working with Django virtual enviormnent setup using the guide https://tutorial.djangogirls.org/en/django_installation/

Expected behavior.
Image upload should work.

Actual behavior.
Image upload is not working, gives error 'Image cannot be loadded from passed link'.

Editor version.
Latest (version 3.1)

Additional resources
PLUGIN-Python-Django-Froala

Related issue
https://github.com/froala-labs/froala-editor-js-2/issues/1900

@2ik
Copy link

2ik commented Feb 12, 2020

You most likely need to create a folder media

You can use FROALA_UPLOAD_PATH setting in settings.py to change the path where uploaded files are stored within the MEDIA_ROOT. By default, uploads/froala_editor/images is used for storing uploaded images.

@souledone
Copy link

I am also facing this issue as @2ik said, I have created a media folder and the uploads are successful but the following error occurs.

 "POST /app/froala_editor/image_upload/ HTTP/1.1" 200 139
Not Found: ./app/media/image.png
"GET ./app/media/image.png HTTP/1.1" 404 2482

I am able to find the uploaded imagesin the folder i have given in settings.py but still can't post the image there.

vid_modified

@anishrestha1
Copy link

Hey, I had the same problem with uploading image in the "froala_editor". I just added static path in urls.py and solved the problem. Here is the image.

In coreapp urls.py
image

@icedogas
Copy link

Hey, I had the same problem with uploading image in the "froala_editor". I just added static path in urls.py and solved the problem. Here is the image.

In coreapp urls.py image

thx,

+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants