Page MenuHomePhabricator

large file still stored in mysql when "mysql-engine.max-size=5mb"
Closed, WontfixPublic

Description

The document said: "To support large files, increase this limit to at least 8MB. This will activate chunk storage in MySQL."

I set it to 5mb, and config local file storage engine.
But when trying upload a file(24mb), it still stored in MySQL.

Chunk size set in PhabricatorChunkedFileStorageEngine.php maybe the reason.
Limit bigger then 4*1024*1024 will be used as chunked engine.

Step:

  1. set mysql-engine.max-size to 5mb
  2. set local file storage path
  3. upload file about 24mb by drop and drup
  4. check where the file stored

Event Timeline

epriestley claimed this task.
epriestley added a subscriber: epriestley.

The behavior is not inconsistent with the documentation, and the documentation does not suggest the configuration you selected.

It must inconsistent:

  • doc said "at least 8mb to support large file"
  • truth is "bigger then 4mb will work"

AND the explaination of this config is "Configure the largest file which will be put into the MySQL storage engine". It is also inconsistent !