boonebgorges / buddypress-docs

GNU General Public License v3.0
106 stars 44 forks source link

File types #539

Closed github-trh closed 6 years ago

github-trh commented 8 years ago

Is there a way to expand on the possible file types a user can attach?

boonebgorges commented 8 years ago

Hello there - Currently, Docs does not do any specific filtering of file types. This means that Docs inherits whatever your WP settings are. In Multisite, there's a UI to change this (Network Admin > Settings); I don't think there's a UI for it in non-MS. You can use the upload_mimes filter to whitelist file types beyond what WP allows by default. See http://www.wpdownloadmanager.com/using-upload_mimes-to-allow-upload-and-download-of-unrecognized-mime-type/ for a good tutorial.

I'll leave this ticket open, as I think it could be a good enhancement to build a wrapper that would allow the whitelist to be filtered in the Docs context only, and maybe even a UI for the purpose.

github-trh commented 8 years ago

Thanks Boone, that worked! Users will need to right-click/save as since it gives me the 404 error in a new tab, but at least the filter allows the file type to get uploaded.

boonebgorges commented 8 years ago

Cool!

On 04/26/16 12:19, github-trh wrote:

Thanks Boone, that worked! Users will need to right-click/save as since it gives me the 404 error in a new tab, but at least the filter allows the file type to get uploaded.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/boonebgorges/buddypress-docs/issues/539#issuecomment-214817157