Closed fluiddot closed 4 months ago
Drop manually encoding multipart requests. This PR is a follow-up of https://github.com/WordPress/playground-tools/pull/203.
This PR follows this discussion regarding the necessity of manually encoding multipart requests. Additionally, it addresses https://github.com/WordPress/playground-tools/issues/259.
fileUpload
encodeAsMultipart
nvm use && npm install
nx preview wp-now start
http://localhost:8881/wp-admin
What?
Drop manually encoding multipart requests. This PR is a follow-up of https://github.com/WordPress/playground-tools/pull/203.
Why?
This PR follows this discussion regarding the necessity of manually encoding multipart requests. Additionally, it addresses https://github.com/WordPress/playground-tools/issues/259.
How?
fileUpload
middleware to avoid modifying the request object.encodeAsMultipart
helper, since we don't need to process them differently (Playground CLI example).Testing Instructions
nvm use && npm install
.nx preview wp-now start
.http://localhost:8881/wp-admin
).