Hello,
I'm strugling with making upload like example to work. It looks like getInputFilename is not working well since somewhere CGI library is not able to well parse its input. I've used examples/printinput.hs to verify it and indeed even if the parameter is well set (verified by wireshark and also by different upload script in python), CGI library does not know anything about "file" parameter, hence refuses to upload anything.
Fortunately everything to duplicate the issue is already in your source tree. Just use following "upload.html" page https://gist.githubusercontent.com/ohtomi/74c49a4f6b460d9097f7/raw/b0a1af5815cbc1cbef91f201ea0b5201fbbb02cd/upload.html -- and change its action parameter to compile printinput.hs. You can also use python's web server for test:
python -m CGIHTTPServer 8080
This way you should see what I see here. Thanks! Karel
Hello,
I'm strugling with making upload like example to work. It looks like getInputFilename is not working well since somewhere CGI library is not able to well parse its input. I've used examples/printinput.hs to verify it and indeed even if the parameter is well set (verified by wireshark and also by different upload script in python), CGI library does not know anything about "file" parameter, hence refuses to upload anything.
Fortunately everything to duplicate the issue is already in your source tree. Just use following "upload.html" page https://gist.githubusercontent.com/ohtomi/74c49a4f6b460d9097f7/raw/b0a1af5815cbc1cbef91f201ea0b5201fbbb02cd/upload.html -- and change its action parameter to compile printinput.hs. You can also use python's web server for test:
This way you should see what I see here. Thanks! Karel