mirror of
https://github.com/outline/outline.git
synced 2026-11-22 14:01:41 +03:00
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.