Automattic / Automattic/wp-api-console

Ability to choose content type; upload files?

Open
#27 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
73
Forks
23
PR merge metrics
No merged PRs in 30d

Description

It looks like they are sent as GET parameters instead:

![pasted image at 2016_11_11 06_59 am](https://cloud.githubusercontent.com/assets/227022/20198297/825878f4-a769-11e6-80cf-d3e7bb51a3c4.png)

@southp found that this is causing "HTTP 414 - Request - URI Too Long" when posting lots of content to a comment, for example.

Ideally we could also choose the request format between a few different options:

- application/x-www-form-urlencoded
- multipart/form-data (allows uploading files for testing the "upload media" endpoints)
- application/json
- GET parameters (is this useful? maybe not)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the React/Redux console builds and sends requests, especially the comment POST flow and the upload-media endpoint testing flow. Compare the current behavior with the four formats listed in the issue; done means long comments no longer become overly long GET URLs and the supported request formats can be selected, including multipart file uploads.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, redux
Domain
api, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.