Extremely large file uploads can completely lock up drupal.

Created on 19 August 2025, about 2 months ago

I suspect this is possibly due to file previews, although I haven't dug further into this. I just wanted to report it in case it was unknown.

As part of testing file uploads with limits deactivated, I made a quick random 3GB file from /dev/urandom and since the default upload UI restricted file extensions, I named it random_file.txt

After upload, Drupal was completely unresponsive, even after restarting apache, php-fpm and mariadb until I erased the file from the private files folder. I suspect something was trying to index it - either drupal or this module.

On naming a new test file random_file.gz the issue went away.

I'm guessing something, somewhere, was attempting to read in the entire file for purposes of indexing or preview so figured I should write it up it in case anyone else runs into anything odd with more normal large files.

🐛 Bug report
Status

Active

Version

1.0

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024