I'm using guile scheme to build some CGI program, and needed to process POST requests for uploaded files -- multipart/form-data to be exact. But what guile provides seems to be lacking this facility, so I wrote a crude one. This should be enough for small enough files. I/O is about 5K-7K KB/s for uploading files.
The main
function in the script contains a simple example of how to get the parameters with this skeleton. Its usage is paired with convert.html
, which trans-writes whatever you upload to the filesystem.