Hi Michael,
Michael Jensen wrote:
> Any ideas on what would cause the problem? It's weird that it works
> for Safari, but not for IE/Firefox on Windows, or even Firefox on Mac.
>
> If you don't know how to fix it, do you have any sample code for doing
> the same thing???
I can't help you with your problem directly as I'm using Apache 2.x and
not Apache 1.x. but, for Apache 2.x, this worked for me:
-----
my $req = Apache2::Request -> new ($r);
my $upload = $req->upload ('newfile');
my $contents = '';
my $size = $upload -> slurp ($contents);
-----
In Apache 2.x, $r is a Apache2::RequestRec object but in Apache 1.x, it
is a Request object. So, perhaps if you remove the first line, it might
work. I'm sure there's a lot more, but there are 1.x --> 2.x porting
documents. I guess you can work backwards to get it to work for you.
If you are working with 2.x and can't get this working, let me know.
There are other things that are more Apache 2.x specific which I left
out... Good luck!
Ray
PS: I've only tested this code with Firefox... :-)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users