Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support streaming multipart/formdata with of-watchdog #44

Open
dschulten opened this issue Jan 9, 2019 · 1 comment
Open

Support streaming multipart/formdata with of-watchdog #44

dschulten opened this issue Jan 9, 2019 · 1 comment

Comments

@dschulten
Copy link

Expected Behaviour

It should be possible to post a multipart request to the watchdog and work with the parts in such a way that Content-Disposition header information (such as the filename) is available to the function.

If there is only one part, feed it to stdin.

If possible, allow to access multiple parts by their names as stream, too.

Make content-disposition information available to the function similar to the usual request headers.
(The Content-Disposition header is defined as a response header only, but it may occur in multipart/formdata for requests).

Current Behaviour

There is no special support for multipart requests.

Possible Solution

Context

The related issue openfaas/faas#344 asked for multipart support by means of a json object containing all base64 encoded parts, that might not be ideal in terms of memory requirements for big multipart requests.
In openfaas/faas#345 it was concluded that support for multipart should go into of-watchdog

@dschulten
Copy link
Author

dschulten commented Apr 3, 2019

See openfaas/python-flask-template#18 for a possible solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant