Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-now: Can't upload media files #202

Closed
fluiddot opened this issue Mar 26, 2024 · 3 comments · Fixed by #203
Closed

wp-now: Can't upload media files #202

fluiddot opened this issue Mar 26, 2024 · 3 comments · Fixed by #203
Assignees

Comments

@fluiddot
Copy link
Contributor

Description

Media files can't be uploaded to sites created with wp-now. Uploads fail with the error Specified file failed upload test..

image

How to reproduce it

Note

I also reproduce this issue when building wp-now locally.

  1. Run the command npx wp-now start
  2. Navigate to WP admin of the site.
  3. Navigate to Media page.
  4. Upload an image file.
  5. Observe the upload fails with the error Specified file failed upload test.
@fluiddot
Copy link
Contributor Author

Seems this might be related to changes from WordPress/wordpress-playground#1018. We'd need to update the way we pass files on the PHP request (reference).

@sejas
Copy link
Collaborator

sejas commented Mar 27, 2024

@fluiddot , yes! exactly. Good finding. In WordPress/wordpress-playground#1018 Playground core removed the custom files property in favor of only multipart form data.
I created a PR that fixes it 🤞 .

@fluiddot
Copy link
Contributor Author

Thank you so much @sejas for working on a fix 🙇 ! I've just tested the PR and works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants