Search code examples
phpnginxdrupal

Drupal image upload fails dues to a max file size limit of 8 bytes


Really strange error message. Drupal is brand new installed and running on an Nginx that is also fresh.

I have absolutely no idea where the 8 bytes are coming from. I set nothing that is kind of 8 in the php.ini.

The only thing I set in php.ini is this:

upload_max_size = 256M
upload_max_filesize = 64M
post_max_size = 256M
max_execution_time = 300

enter image description here

So how to fix that image upload limitation? Really lost as there is no detailed error log on this except that message from the image.

Edit

I found out that the mode of the editor is causing this issue. So in Full mode it fails with that error message, but in the Simple mode it works.

But I would like to use Full mode without that workaround uploading in Simple mode before.

enter image description here

and

enter image description here


Solution

  • Thanks to @EricLavault, somehow the setting was set to 8. As I can't remember to set it there, I cannot say what changed it. Now works again properly.

    enter image description here