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

Uploading multiple image files #3

Open
swsch opened this issue Nov 17, 2019 · 0 comments
Open

Uploading multiple image files #3

swsch opened this issue Nov 17, 2019 · 0 comments

Comments

@swsch
Copy link
Contributor

swsch commented Nov 17, 2019

One of my IOWA apps has been running for over 12 years now, with only minor hiccups during the upgrade from ruby 1.8 to 2.6.

A recent feature request includes the capability to upload images, which I tried to implement via a <input type="file" name="upload" multiple ...> form field. However, the WEBrick request handler explicitly joins multiple form values for the same form field into a single string (src/iowa/request/WEBrick.rb, around line 25) using \0 as separator.

Not good for binary content.

I've managed to find an extremely ugly way around this, but I wonder if there is a smart way to get multiple files uploaded via a single input field.

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