django-cms / django-filer

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

Saved image cannot be displayed #1299

Closed kevinxpfeiffer closed 1 year ago

kevinxpfeiffer commented 2 years ago

I'm having a problem viewing uploaded images. The images can be uploaded without any problems and will also be saved in the specified folder. After that it will be shown as follows:

Screenshot 2022-07-16 at 17 11 57

When I then click on expand I get the following error:

Screenshot 2022-07-16 at 17 12 18

I installed django-filer according to the documentation. But apparently it doesn't work.

How can I solve this problem?

marksweb commented 2 years ago

@pfeiffer-dev What versions of django & django-filer are you using?

I've no issue with a project using django 3.2 and django-filer 2.2.1

kevinxpfeiffer commented 1 year ago

@marksweb thank you for your interest. I'm currently using Django 3.2.14 and django-filer 2.2.1.

Milutinke92 commented 1 year ago

@marksweb Hi, I have a similar issue.

On admin folder page, i see all images, and I can upload new ones, then, when I select one image, I see it in model field. But, when I save, and page is reload, I get the file-missing.svg displayed.

When I debug, I got that {% if object.file.exists %} in admin_file.html returns false.

So I am confused, on Admin File Folder, it's using local paths, and for checking if file exists, uses storage, (which in our case is S3) and that's why returns false (on local development, everything works as it should).

Some suggestions?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This will now be closed due to inactivity, but feel free to reopen it.