> -----Original Message-----
[]
>
> 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?
>
Sorry, me again ;-)
I think what I'm after is what you'd get as a result of...
while(<>) {
print; }
(as described here: http://www.cs.tut.fi/~jkorpela/forms/testing.html)
so that you get all the multipart/form-data stuff
e.g.
-----------------------------7d21fd7b3170254
Content-Disposition: form-data; name="textfield"
dfg
-----------------------------7d21fd7b3170254
Content-Disposition: form-data; name="filefield";
filename="D:\dev\Acrobat5_SDK\Documentation\index.pdx"
Content-Type: application/octet-stream
etc.
However, if I stick this in an ASP page I get nothing ???. Same goes for
reading anything from STDIN.
I think I'm going outside the bounds of Apache::ASP. Does Apache::ASP by any
chance grab the raw input before I get a chance to get it?
Cheers,
Tim.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]