> -----Original Message----- > From: Tim Moore > Sent: 15 July 2002 11:18 > To: 'Josh Chamas' > Cc: 'Quentin Smith'; '[EMAIL PROTECTED]' > Subject: RE: Uploading files > [] > > Oh, one question... what happens if you have a multiple file > upload in the form? > > Not actually sure if that's possible but at a guess the MIME > stuff in IIS would let you have multiple files under one > 'submit'. I think I've seen sites that do something like that. > > As through Apache::ASP just seems to return the file itself > there would be no boundaries to break up the files. > > Not that I need multiple file upload yet but I can see it > being added to our project at some point. > >
Ah, it seems I do need the rest of the form data. More is submitted than just the file so I need data from some other fields in the form, and these are dynamic. So I need a way of either getting all the form data (noting that at run time I don't know the field names because these are dynamically generated), or the whole multipart/form-data thing with file. For info, in the IIS version of our pages, we just do BinaryRead and pass the binary data into our COM objects with some C++ code which then decodes the Mime stuff and the uploaded file. In Apache::ASP I'm using SWIG to talk to the same C++ code (running on Unix of course. SWIG is just a replacement for COM in our case). P.S. What does the Mime-Header return? e.g. $Request->FileUpload('upload_file', 'Mime-Header'); I seem to get a collection but I'm having trouble parsing it (seems to be a collection of collections but I'm probably doing something wrong - perl just isn't my thing ;-) ). and if I use the temp file, what does that contain, just the upload file or more than that? Cheers, Tim. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]