Edits to attachment plugin again