wordpress-playground icon indicating copy to clipboard operation
wordpress-playground copied to clipboard

Support uploads to paths different than /wp-content/uploads

Open adamziel opened this issue 2 years ago • 0 comments

https://github.com/WordPress/wordpress-wasm/pull/48 Introduced a support for file uploads. Unfortunately it introduces an assumption that all requests to /wp-content/uploads/* should be resolved from the WASM filesystem, and all other non-PHP requests should be resolved from the server where wordpress-wasm is hosted.

Let's relax that constraint and correctly serve the static files from either the server or the WAASM filesystem regardless of their path.

adamziel avatar Oct 17 '22 03:10 adamziel