Skip to content

Feature request: posting multipart-encoded files with requests.post #11

@hishamhm

Description

@hishamhm

In Python requests we can pass a files= argument and send files in POST request:

http://docs.python-requests.org/en/master/user/quickstart/#post-a-multipart-encoded-file

This is needed by lua-mastodon to send messages to the network with file attachments:

https://github.com/hishamhm/lua-mastodon/blob/master/mastodon.lua#L342

I already wrote the code using the files argument, since I assumed lua-requests supported it already, so for now that field is a no-op, but it's ready if the feature comes in the future. :)

Thank you for such a great library! I wouldn't have written lua-mastodon without it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions