Uploading image files to WordPress via WPCOM interface

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, node.js, wordpress
Domain
api, backend

Research direction

Start by reading the linked WordPress media API documentation and the reproduction gist, then inspect the package's WPCOM interface for its existing upload path. Confirm the expected image-upload request and make the package's browser-based interface handle it successfully; the issue provides no named files or tests, so completion should be validated with a working image upload.

Written by the indexing model from the issue text.

Description

I've been working on this Node.js package to provide easy browser-based JavaScript interfaces to the common WPCOM functions for working with WordPress websites.

Most of it has been going pretty smoothly, but I've been having trouble with uploading image files.

I created this gist, to show one of my attempts, I've tried lots of approaches, based on docs I've been able to find, and working with ChatGPT and Meta.ai, both of which took some pretty wild guesses which indicates to me that it doesn't have a lot of good sources for this.

https://gist.github.com/scripting/1fc3f656748dbaa3d84aefc1322aa72c

Any help much appreciated!

Dominant language
JavaScript
Stars
21
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scripting/wpIdentity

All issues in scripting/wpIdentity

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.