PressForward / pressforward

PressForward is a free plugin that provides an editorial workflow for content aggregation and curation within the WordPress dashboard. It is designed for bloggers and editorial teams who wish to collect, discuss, and share content from a variety of sources on the open web.
GNU Affero General Public License v3.0
120 stars 22 forks source link

Detect when OPML upload is not allowed #1172

Closed boonebgorges closed 1 year ago

boonebgorges commented 1 year ago

There's currently an interface for OPML upload, but on a vanilla WP installation it's not possible to upload OPML files. We should detect this, and either hide the upload interface, or grey it out and give the user instructions on how to allow OPML file uploads.

boonebgorges commented 1 year ago

I've put a check in place that hides the interface. I'm still having problems in my local tests, as TTRSS appears to output an OPML file that has the text/xml MIME type, while WP expects it to be text/x-opml. So the upload still fails. But this is a problem beyond what PF can solve, since there's no way to know before uploading whether the OPML is encoded in the way that WP expects. So this is good enough for now.