WordPress / WordPress/Requests

Add ability to pass in a file pointer

Open
#34 14 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Core Focus: File handling
Dominant language
PHP
Stars
3.6k
Forks
500
Avg merge
2d 21h
Merged PRs (30d)
5

Description

How to post file data / upload file using requests? I can;t find any documentation on this.

Like in HttpRequest, we have a method called addPostFile()

Contributor guide

Open the contributing guide

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.

Research direction

Start by reviewing the existing request body and file-upload handling, then compare the desired behavior with HttpRequest's addPostFile() method. Done means the library accepts a file pointer for uploads and documents how to post file data; the issue does not name a specific file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.