I have written functions to add attachments, but what about adding docs to groups in which there is protected access? I don’t see that accounted for here, is it? I can’t use the standard WP method because they will just be put in the upload folder. I think the pieces I am missing are the functions for creating the folder under bp-attachments and then creating the .htaccess file. Thanks.