cheecheeo / haskell-cgi

A library for writing CGI programs
Other
5 stars 9 forks source link

html5 multiple file upload (`getInputFileNames`) #34

Open cheecheeo opened 7 years ago

cheecheeo commented 7 years ago

From Jón:

I want to change it to use the html5 multiple file upload. Unfortunately getInputFileName only gives one file name and I can’t see a way of getting the other file names at all (I can get the contents by using getMultiInput).

As far as I can tell, the API doesn’t expose enough of the innards for me to be able to get round this.

JonFairbairn commented 7 years ago

Similarly getInputContentType

JonFairbairn commented 7 years ago

This also applies to multiple input elements with the same name. The changes in https://github.com/cheecheeo/haskell-cgi/pull/35 cover this. (Though the documentation should be changed to reflect this)