Use WP APIs for File System Operations
-
Hi, thanks for the awesome plugin! We’re looking to purchase the paid version to generate invoices for our ElasticPress.io customers, but we run our site on a cluster and use the S3 plugin from Human Made to do this.
I’ve seen that you’ve shared a couple of filter-based workarounds for folks who use S3 but also have temp access to their uploads folder (thank you!), but unfortunately we’d need to filter the opposite direction (override the direct uploads path with the S3 one), because we have 3 web heads and no shared file system, meaning all uploads must immediately go to S3.
Before we do this, I thought I’d ask if you think it would be reasonable to replace the direct file system calls in the plugin with WP API calls (still writing to “uploads” but with the benefit of writing wherever the API itself is filtered to write).
We might be able to provide a PR if you feel our proposed approach will work–just let me know your thoughts!
Best,
Vasken
- You must be logged in to reply to this topic.