-
Notifications
You must be signed in to change notification settings - Fork 43
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
File upload #122
Comments
Thanks for your reply. Something like this:
But this don’t work. |
You can't have a list of file input streams as a part of type image, right now each part must be named and annotated correctly, you can make them optional though with the nullability. You could make an upload of up to N images each called image1 to imageN in the parameters. |
Now I am using a binary request, but I get this error:
I don’t do anything in the route which is using the binary request. |
Please identify where the error originates, i don't have the environment to reproduce at the moment. |
|
Do you need more information? |
Not necessarily, i just don't have the mans to fix that during the holiday season... |
The error occurs on every file upload expect from fileupload in the tests. |
There have been changes in newer versions of ktor that prevent using streams directly on the ktor thread... There is probably a non blocking alternative that is allowed, but the simplest would be to add an array type that just consumes the stream inside the proper io thread like described by the error |
What is the best way to get a list of images as a multipart request?
The text was updated successfully, but these errors were encountered: