From: Jim Freeze Date: 2003-01-15T12:24:35+09:00 Subject: Re: Doesn't anyone do file uploads via html? On Tuesday, 14 January 2003 at 21:54:16 +0900, Ross Shaw wrote: > I did this several years ago using Java. Got it working OK. IIRC it > should come back in a multipart MIME body. I think this is described in > rfc1867 [1]. > > However this does not appear to be the format that you are getting in > your file. You might need to dig around in the webrick code to see how > it is reading the actual HTML stream. > > Also it might be worth trying to upload a .txt file as it might have > something to do with it not recognizing how to encode .rb file. Thanks for the tip. I tried a .txt file and it worked as it should. Thanks. I also tried a .tgz file. This file had an extra \0A on the end, but otherwise was ok. I find it interesting that it did not treat the .rb file as a text file. > 1. http://www.ietf.org/rfc/rfc1867.txt Thanks for the link. I glanced it over and rfc1521 about mime formats but did not have anything jump out at me as how to set mime types for cgi. Can this be done? Thanks again. -- Jim Freeze ---------- Life is like an onion: you peel off layer after layer, then you find there is nothing in it.