WordPress / WordPress/Requests

Accept file handle option in addition to filename

Open
#314 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3.6k
Forks
500
Avg merge
2d 21h
Merged PRs (30d)
5

Description

Requests can accept a filename option which is helpful if you're just downloading some data, but if you need to process that data before saving it, it would be helpful to be able to pass the file handle directly instead of just the filename.

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 locating the request handling for the existing filename option and trace how downloaded data is written. Define the expected behavior for receiving a file handle directly, then verify that both filename-based and file-handle-based downloads work without changing the existing option's behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.