"End of file found" error with Apache2::UploadProgress

2008-05-30 Thread greg boyington
t; my $req = Apache2::Request->new($r); my $u = $req->upload("file"); if ( $u ) { $u->link('/tmp/test.file'); } As you can see I'm not even invoking the upload progress bar in the component; merely enabling the module in httpd.conf seems to be enough

"End of file found" error with Apache2::UploadProgress

2008-05-30 Thread greg boyington
t; my $req = Apache2::Request->new($r); my $u = $req->upload("file"); if ( $u ) { $u->link('/tmp/test.file'); } As you can see I'm not even invoking the upload progress bar in the component; merely enabling the module in httpd.conf seems to be enough

"End of file found" error with Apache2::UploadProgress

2008-05-28 Thread Greg Boyington
;%init> my $req = Apache2::Request->new($r); my $u = $req->upload("file"); if ( $u ) { $u->link('/tmp/test.file'); } As you can see I'm not even invoking the upload progress bar in the component; merely enabling the module in httpd.conf seems to be e

Re: "End of file found" error

2007-06-11 Thread Raymond Wan
Hi Joe, Joe Schaefer wrote: Anything here looks suspicious? Yes. Your code behaves as if CGI.pm was being used by Mason instead of apreq. When that happens, CGI.pm steals the post data, and apreq sees nothing but an "End of File" situation. If I were you, I'd double-check how you conf

Re: "End of file found" error

2007-06-10 Thread Joe Schaefer
Raymond Wan <[EMAIL PROTECTED]> writes: > For some reason, I am doubting my own HTML skills...or perhaps I've > been staring at this for so long, the screen is getting blurry :-) . > Anything here looks suspicious? Yes. Your code behaves as if CGI.pm was being used by Mason instead of apreq. Wh

Re: "End of file found" error

2007-06-10 Thread Raymond Wan
;filename'); %> There's some Mason in there, but basically, both $filename and $keyword print out ok (well, the filename), so it doesn't seem like any part of the form is "lost". "scalar (@params)" is 0, though...which makes me think I'm doing somethin

Re: "End of file found" error for file uploading

2007-06-10 Thread Joe Schaefer
Raymond Wan <[EMAIL PROTECTED]> writes: > apreq2 is version 2.08.4 on Debian stable (testing seems to have a > 2.08.5...). Hmm, that's the latest version. I don't think debian has applied any local mods to the codebase. > Any suggestions on how I can resolve the problem? Could there be > some

Re: "End of file found" error for file uploading

2007-06-10 Thread Raymond Wan
eq->body, and that is die'ing with the "End of file found" error. What browser are you using, and what version of apreq? Oh! I see. After I read your message, I tried other browsers and while all browsers could be wrong, I got the same error. First, I was using Iceweasel

Re: "End of file found" error for file uploading

2007-06-10 Thread Joe Schaefer
form using the "post" method and an enctype of > "multipart/form-data". > > In my browser, I am getting a single message: "End of file found". > That is, the single line. What's happening is that $req->upload calls $req->body, and that is die'

"End of file found" error for file uploading

2007-06-10 Thread Raymond Wan
Hi all, I'm trying to figure out how to handle file uploads from a user. I am using Mason with mod_perl2 under Apache 2.x, but I have a feeling this has nothing to do with Mason as I saw a similar question in December 2006 on this mailing list. Yet, there wasn't a relevant solution as the

Re: Apache2::Upload and End of file found error Part 2

2006-12-08 Thread Perrin Harkins
cfaust-dougot wrote: >>Argh you're right - since it was created in the global hash I thought it >>was part of the globals and didn't look closely enough. Yep, I was just making sure.. That makes it even more of a mystery though, don't you think? Well, although the CGI object is not a global

RE: Apache2::Upload and End of file found error Part 2

2006-12-08 Thread cfaust-dougot
pm's "escape" and "unescape" methods I won't need CGI.pm at all.. Thanks! > > > From: Fred Moyer [mailto:[EMAIL PROTECTED] > Sent: Thu 12/7/2006 2:33 AM > To: cfaust-dougot > Cc: modperl@perl.apache.org > Subject: Re: Apache2::Up

Re: Apache2::Upload and End of file found error Part 2

2006-12-07 Thread Fred Moyer
use of CGI.pm completely, is there no way to get them to work together?? Thanks -Chris From: Fred Moyer [mailto:[EMAIL PROTECTED] Sent: Thu 12/7/2006 2:33 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache2::Upload and End of file found erro

RE: Apache2::Upload and End of file found error Part 2

2006-12-07 Thread cfaust-dougot
there no way to get them to work together?? Thanks -Chris From: Fred Moyer [mailto:[EMAIL PROTECTED] Sent: Thu 12/7/2006 2:33 AM To: cfaust-dougot Cc: modperl@perl.apache.org Subject: Re: Apache2::Upload and End of file found error Part 2 cfaust-dougot wrot

Re: Apache2::Upload and End of file found error Part 2

2006-12-06 Thread Fred Moyer
4) Take a look at Apache::DBI instead of keeping $db in a global - $db = ISMH::ConnectDBUser->connect_to_db(); HTH - I think the simple issue to fix your problem is don't use a global $CGI object FWIW Thanks -Chris From: cfaust-dougot [mailto:[E

Apache2::Upload and End of file found error Part 2

2006-12-06 Thread cfaust-dougot
From: cfaust-dougot [mailto:[EMAIL PROTECTED] Sent: Tue 12/5/2006 1:28 PM To: modperl@perl.apache.org Subject: Apache2::Upload and End of file found error Hi, I'm trying to use Apache2::Upload as shown in the examples and the only thing I get is "End of file found" in

Apache2::Upload and End of file found error

2006-12-05 Thread cfaust-dougot
Hi, I'm trying to use Apache2::Upload as shown in the examples and the only thing I get is "End of file found" in the error log. I've found quite a few messages on the subject, but I'm not using Mason and I'm using libapreq2.0.7.1. I've tried the fh and slurp methods and both are the same.