Files
outline/server/queues
mehmet turac f9ae2dcd6d fix: Imported attachment keys end in "null" when no name is set (#13750)
uploadAttachments reads the name off alt for images and title for video
and attachment nodes. Both come through as null when the markup doesn't
set one, and String(null) is "null" - 4 chars, so the name.length !== 0
check passes and the node.type.name fallback never runs. getKey then
sticks "null" on the end of the key: uploads/<userId>/<uuid>/null.

Fall back to the node type before the String(). Left the length check in,
it still catches a whitespace-only name. Only hits importers on the
default shouldUploadAttachmentsPerPage(); markdown import opts out.
2026-09-19 10:51:53 -04:00
..
2025-12-17 23:15:55 -05:00