0

When I load an image into a Drupal 8 form, JS errors appear in the console and the file link is not displayed. I have a limit of 10 MB per file in Drupal. If I load an image of 1 MB or less, it works. If I load an image of more than 1MB, it does not load and there are errors in the consoles :

enter image description here

I load an image of less than 1 MB, it works:

enter image description here

I load an image of more than 1 MB, it is a failure (errors in the console and no warning) :

enter image description here

The form fields and my server are correctly configured :

enter image description here

The server and Drupal seem to me correctly set. How can I fix this ?

0

do you have access to the nginx configuration for this website? If so, you can add the following to the configuration and see what happens. It might set already to 1m:

http {
    #...
    client_max_body_size 10m;
    #...
}
  • perfect thank you – Mathieu Oct 8 at 12:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.