Skip to content

need better default behavior for HTTP.Form #489

@ExpandingMan

Description

@ExpandingMan

I've been struggling for a while now to use HTTP.Form to upload files to Slack. Unfrotunately for me, Slack only gives the extremely unhelpful response invalid_form_data. After some digging on the internet, I suspect that the output of HTTP.Form is not quite what Slack is expecting.

See, in particular these examples. One thing I noticed is that, in these examples, both filename and the file itself are contained in the same section, whereas HTTP.Form outputs these as completely separate sections.

If I ever get the upload to Slack working, I will post what I had to do to get it to accept the form.

Also, it doesn't seem to me that HTTP.Form is including the line where it needs to specify the boundary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions