Skip to content

Try It: Support file upload in multipart/form-data requests #648

@marbemac

Description

@marbemac

Design: https://www.figma.com/proto/IkNc59AU2JN5Kc1qbd2AiB/Elements?node-id=695%3A16457&viewport=-257%2C522%2C0.43354687094688416&scaling=min-zoom

As a docs consumer, I can send file parameters as part of my multipart/form-data. See the "image" property in the request body of the linked design.

  • On clicking any of the right side of the image input item, opens file system picker for user to select a file.

  • On selecting a file, show the file name as the value in the input.

  • Show x icon on right side if have file uploaded - clicking should clear it.

Follow-up question, out of scope: how does this work w codegen? Can we make it work without too much effort / complexity? Followup?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions