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

Unable to create image style preview if image field is using private file upload #148

Open
chrislaick opened this issue Nov 6, 2024 · 0 comments

Comments

@chrislaick
Copy link

chrislaick commented Nov 6, 2024

I'm having issues with saving a media entity with Drupal core's image field. The image field is set to upload to private files. The image is uploaded into the field and a preview is shown, however the preview is a smaller rendered size of the original image - not a true image style copy. Inspecting the image, it's the same file size and intrinsic size as the original image.

Most importantly, on clicking Save on the media entity, I receive an error message and the media form is emptied. I have already set correct paths for public, private, and tmp directories in settings.php. Default download method is Public local files served by the webserver in /admin/config/media/file-system.

Error message
The form has become outdated. Press the back button, copy any unsaved work in the form, and then reload the page.

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

1 participant