Replies: 4 comments 2 replies
-
If you open the image manualy in the browser, does it show up? |
Beta Was this translation helpful? Give feedback.
-
To rule out any errors during the migration, I completely removed everything and reinstalled Twill CMS from scratch. However, I encountered the exact same issue with a 404 error. The image uploads successfully but does not display in the browser. |
Beta Was this translation helpful? Give feedback.
-
Multiple things could be causing this. Since you do not have any error message, the first thing that comes to mind is that your webserver may be configured to server static files under the /img path. If that's the case, you either need to remove that and let the /img path go through your Laravel application, or change the path using Next, I'd check if the PHP GD extension is enabled. If you're still not successful, please share your full media library configuration so I can advise more. You can output |
Beta Was this translation helpful? Give feedback.
-
As it turned out, it was all about nginx. My starndart config nginx inculdes rules for caching static files:
and this rule defines how image files will be processed. Just added in this rule: |
Beta Was this translation helpful? Give feedback.
-
I migrated the project from a local server to a remote server. In the admin panel, images uploaded through the media library are not displaying, and when trying to open the image file in the browser, I get a 404 error. Even if I upload a new image, it appears in the file system, but the image itself doesn't display in the browser (the same 404 error).
Of course, I have run php artisan storage:link and checked file permissions. The path to the image looks like this: /img/75efb280-1c52-4781-9afc-6f9690d54452/1s.jpg.
Beta Was this translation helpful? Give feedback.
All reactions