Document attachment functionality