mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:09:49 +08:00
The stored name is "<attachment_id>_<filename>", so a valid 240-byte filename exceeded the 255-byte component limit and put() raised ENAMETOOLONG. Trim the stem by bytes, keeping a short extension, so saving and lookup stay consistent.