Closed ParkLai closed 3 years ago
Hi @ParkLai - Thanks for the ticket.
The plugin's protections against direct file downloads make it difficult for this to work. Specifically, buddypress-docs filters the return path of wp_upload_dir()
so that it's specific to the current Doc ID. Thus, when you upload a file via the Docs attachment interface, it's going into a directory that looks like uploads/bp-attachments/[doc_id]/
. The autogenerated .htaccess files on Apache then depend on this Doc-specific directory when creating rewrite rules.
In contrast, if you uploaded a file to group 123
, and it were stored in the 123
directory, but then you tried to use it in group 456
, the system - as currently built - would check to see whether you have permissions to view 123
.
As such, this change is not possible without extensive modifications to the underlying system of how files are uploaded and served. Files must be uploaded separately to each group.
When uploading a file, Admin is unable to select an existing (uploaded) file from the media library. Is there a way to enable this (just for Admin)?
Use case:
This issue can be solved if there's a way for the Admin to select the same file for a different group.