Re: Apache::UploadMeter

2003-07-23 Thread Sven
I had some problems with my server-configuration (httpd.conf) but now it
works perfect.
Thanks to Issac for the fast help and the cool module.

 Hope this gets you started,
   Issac






Apache::UploadMeter

2003-07-22 Thread Sven




Hi there,

I want to use the Apache-UploadMeter. I set my 
configuration to:

-use 
Apache::UploadMeter;$Apache::UploadMeter::UploadForm='/formtag.htm';$Apache::UploadMeter::UploadScript='/perl/upload.pl';$Apache::UploadMeter::UploadMeter='/meter';$Apache::UploadMeter::DEBUG 
= 
2;Apache::UploadMeter::configure;-

The UploadMeter works perfect - but I don´t know 
how I can catchthe files within upload.plMy Uploadform has 2 
Uploadfields (file1 and file2) an some hidden-fields (which I need to know 
where the files to store)In my upload.pl I have the follwing Code to Test 
something:

-use Apache ();use 
Apache::Request ();$apr = Apache::Request-new($r);foreach 
$parm($apr-param){print "-".$parm." : 
".$apr-param($parm)."\n";}print 
"-\n";-

The system it´s running on : RedHat 7.3 / 
Apache 1.3.27 / mod_perl 1.26 / Perl 5.6.1Apache::Request 1.1 / 
Apache::UploadMeter 0.22

But the only value I get is the "hook_id" and this 
is a GET value.How can I get the POST values ?I´m on the beginning with 
mod_perl - the last time I used Perl and the CGI.pm

Can someone show me an example of a "upload.pl" where a file is 
stored on the server please?


Re: Apache::UploadMeter

2003-07-22 Thread Issac Goldstand
Sven wrote...

[snip]
-
use Apache ();
use Apache::Request ();
$apr = Apache::Request-new($r);
foreach $parm($apr-param){
 print -.$parm. : .$apr-param($parm).\n;
}
print -\n;
-

First of all, use instance() instead of new().  I believe the documentation
for Apache::UploadMeter mentions this.

[snip]

Can someone show me an example of a upload.pl where a file is
stored on the server please?

Sure.  Here is the response handler for the testbed for Apache::UploadMeter
at http://epoch.beamartyr.net/umtest/form.html

package ApacheUploadMeterTest;
use Apache::Request;
use Apache::Constants qw(OK DECLINED);
use CGI::Carp qw(fatalsToBrowser);
use Data::Dumper;
sub handler {
my $r=shift;
my $q=Apache::Request-instance($r, POST_MAX=2097152);
# Actually, the above line doesn't work - POST_MAX will be a parameter
to
# Apache::UploadMeter in future releases
local($|)=1;
my $num=0;
print PART1;
Content-Type: text/html

HTML
HEAD
TITLEApache::UploadMeter Test Module/TITLE
/HEAD
BODY
H1Upload Complete/H1
PART1
foreach my $upload ($q-upload) {
$num++;
my $name=$upload-name;
my $size=$upload-size;
my $filename=$upload-filename;
my $type=$upload-type;
my $info=Dumper($upload-info);
my $tempname=$upload-tempname;
print EOP
UL
LIUpload field: $num/LI
LIDetected upload field: $name/LI
LIDetected filename: $filename ($size bytes)/LI
LIReported MIME type: $type/LI
LISpool file: $tempname/LI
LIOther debug info: $info/LI
/UL
EOP
}
print /BODY/HTML\n;
return OK;
}
1;

Hope this gets you started,
  Issac




Re: Apache::UploadMeter

2003-07-22 Thread Sven
Thanks - I´ll try it and send response.
I´ve read all readme-files and the build-in manual but I did´nt find
something about that I have to use instance()...
- Original Message - 
From: Issac Goldstand [EMAIL PROTECTED]
To: Sven [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 3:21 PM
Subject: Re: Apache::UploadMeter


 Sven wrote...

 [snip]
 -
 use Apache ();
 use Apache::Request ();
 $apr = Apache::Request-new($r);
 foreach $parm($apr-param){
  print -.$parm. : .$apr-param($parm).\n;
 }
 print -\n;
 -

 First of all, use instance() instead of new().  I believe the
documentation
 for Apache::UploadMeter mentions this.

 [snip]

 Can someone show me an example of a upload.pl where a file is
 stored on the server please?

 Sure.  Here is the response handler for the testbed for
Apache::UploadMeter
 at http://epoch.beamartyr.net/umtest/form.html

 package ApacheUploadMeterTest;
 use Apache::Request;
 use Apache::Constants qw(OK DECLINED);
 use CGI::Carp qw(fatalsToBrowser);
 use Data::Dumper;
 sub handler {
 my $r=shift;
 my $q=Apache::Request-instance($r, POST_MAX=2097152);
 # Actually, the above line doesn't work - POST_MAX will be a parameter
 to
 # Apache::UploadMeter in future releases
 local($|)=1;
 my $num=0;
 print PART1;
 Content-Type: text/html

 HTML
 HEAD
 TITLEApache::UploadMeter Test Module/TITLE
 /HEAD
 BODY
 H1Upload Complete/H1
 PART1
 foreach my $upload ($q-upload) {
 $num++;
 my $name=$upload-name;
 my $size=$upload-size;
 my $filename=$upload-filename;
 my $type=$upload-type;
 my $info=Dumper($upload-info);
 my $tempname=$upload-tempname;
 print EOP
 UL
 LIUpload field: $num/LI
 LIDetected upload field: $name/LI
 LIDetected filename: $filename ($size bytes)/LI
 LIReported MIME type: $type/LI
 LISpool file: $tempname/LI
 LIOther debug info: $info/LI
 /UL
 EOP
 }
 print /BODY/HTML\n;
 return OK;
 }
 1;

 Hope this gets you started,
   Issac






Re: UploadMeter

2003-06-04 Thread Issac Goldstand
Sorry for the late reply.

http://epoch.beamartyr.net/umtest/form.html

That's a development version, but there shouldn't be any noticable
differences between that and the currect version.  It's just configuration
issue.  One thing I did note is that MSIE 6 is not refreshing the meter...

  Issac

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 7:02 PM
Subject: UploadMeter


 Hi,
   Anyone know a site that uses UploadMeter? I would like to
 take a live look at it to see if its what I am after. So
 far when I try it it simply does not print 'any' form
 input fields. This is likely due to something about Stacked
 Handlers. Well TIA.

 Best Regards,
 [EMAIL PROTECTED]

 -- 
 /*  Security is a work in progress - dreamwvr */
 #   48 69 65 72 6F 70 68 61 6E 74 32
 # Note: To begin Journey type man afterboot,man help,man hier[.]
 # 66 6F 72 20 48 69 72 65   0001
 // Who's Afraid of Schrodinger's Cat? /var/(.)?mail/me \?  ;-]




RE: UploadMeter

2003-06-04 Thread Ryan Farrington
Feature or bug?
Other debug info: Apache::Table=HASH(0xa1223ec)

Here is what it told me when I used it.
Upload Complete
Detected upload field: TestUploadField 
Detected filename: /yame100.zip (320327 bytes) 
Reported MIME type: application/x-zip-compressed 
Spool file: /tmp/apreqHHY8vh 
Other debug info: Apache::Table=HASH(0xa1223ec)

-Original Message-
From: Issac Goldstand [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 04, 2003 6:04 AM
To: [EMAIL PROTECTED]
Cc: modperl list
Subject: Re: UploadMeter


Sorry for the late reply.

http://epoch.beamartyr.net/umtest/form.html

That's a development version, but there shouldn't be any noticable
differences between that and the currect version.  It's just
configuration issue.  One thing I did note is that MSIE 6 is not
refreshing the meter...

  Issac

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 7:02 PM
Subject: UploadMeter


 Hi,
   Anyone know a site that uses UploadMeter? I would like to take a 
 live look at it to see if its what I am after. So far when I try it it

 simply does not print 'any' form input fields. This is likely due to 
 something about Stacked Handlers. Well TIA.

 Best Regards,
 [EMAIL PROTECTED]

 -- 
 /*  Security is a work in progress - dreamwvr */
 #   48 69 65 72 6F 70 68 61 6E 74 32
 # Note: To begin Journey type man afterboot,man help,man hier[.]
 # 66 6F 72 20 48 69 72 65   0001
 // Who's Afraid of Schrodinger's Cat? /var/(.)?mail/me \?  ;-]





Re: UploadMeter

2003-06-04 Thread Issac Goldstand
Feature. definately - That page is a seperate module called
ApacheUploadMeterTest.pm whose sole purpose is to analyze the upload fields
recieved in that request and report all information on them.

It's not part of the Apache::UplaodMeter distro at all (Although up till
version 0.22 I believe there was a dummy response handler included in it)

REmember that the whole library is for the upload progress meter that pops
up, not the response page :-)

  Issac

- Original Message - 
From: Ryan Farrington [EMAIL PROTECTED]
Cc: 'modperl list' [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 2:18 PM
Subject: RE: UploadMeter


 Feature or bug?
 Other debug info: Apache::Table=HASH(0xa1223ec)

 Here is what it told me when I used it.
 Upload Complete
 Detected upload field: TestUploadField
 Detected filename: /yame100.zip (320327 bytes)
 Reported MIME type: application/x-zip-compressed
 Spool file: /tmp/apreqHHY8vh
 Other debug info: Apache::Table=HASH(0xa1223ec)

 -Original Message-
 From: Issac Goldstand [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 6:04 AM
 To: [EMAIL PROTECTED]
 Cc: modperl list
 Subject: Re: UploadMeter


 Sorry for the late reply.

 http://epoch.beamartyr.net/umtest/form.html

 That's a development version, but there shouldn't be any noticable
 differences between that and the currect version.  It's just
 configuration issue.  One thing I did note is that MSIE 6 is not
 refreshing the meter...

   Issac

 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, May 31, 2003 7:02 PM
 Subject: UploadMeter


  Hi,
Anyone know a site that uses UploadMeter? I would like to take a
  live look at it to see if its what I am after. So far when I try it it

  simply does not print 'any' form input fields. This is likely due to
  something about Stacked Handlers. Well TIA.
 
  Best Regards,
  [EMAIL PROTECTED]
 
  -- 
  /*  Security is a work in progress - dreamwvr */
  #   48 69 65 72 6F 70 68 61 6E 74 32
  # Note: To begin Journey type man afterboot,man help,man hier[.]
  # 66 6F 72 20 48 69 72 65   0001
  // Who's Afraid of Schrodinger's Cat? /var/(.)?mail/me \?  ;-]
 





Apache::UploadMeter configuration problem

2003-02-13 Thread Konstantin Yotov
Hello! :)
I install Apache::UploadMeter, but when I when I add
this in startup.pl
use Apache::UploadMeter;

$Apache::UploadMeter::UploadForm='/form.html';
$Apache::UploadMeter::UploadScript='/perl/upload';
$Apache::UploadMeter::UploadMeter='/perl/meter';

Apache::UploadMeter::configure;

following instruction from this modul help, Apache 
starts with error
Use of uninitialized value in numeric gt () at
/usr/lib/perl5/site_perl/5.6.1/Apache/UploadMem line
300.
/usr/sbin/apachectl: line 211:  5235 Segmentation
fault  $HTTPD -t

Please give me some advice.
Thanks.

Bye.

=


__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com



Re: Apache::UploadMeter configuration problem

2003-02-13 Thread Cees Hek
Quoting Konstantin Yotov [EMAIL PROTECTED]:

 Hello! :)
 I install Apache::UploadMeter, but when I when I add
 this in startup.pl
 use Apache::UploadMeter;
 
 $Apache::UploadMeter::UploadForm='/form.html';
 $Apache::UploadMeter::UploadScript='/perl/upload';
 $Apache::UploadMeter::UploadMeter='/perl/meter';
 
 Apache::UploadMeter::configure;
 
 following instruction from this modul help, Apache 
 starts with error
 Use of uninitialized value in numeric gt () at
 /usr/lib/perl5/site_perl/5.6.1/Apache/UploadMem line
 300.
 /usr/sbin/apachectl: line 211:  5235 Segmentation
 fault  $HTTPD -t

You are getting a segfault, and need to provide a backtrace if anyone is going
to be able help you.  If you read the SUPPORT document that comes with mod_perl,
it will explain what information you should include, including instructions on
how to get a backtrace.

Also note that Apache::UploadMeter requires StackedHandlers support to be built
into mod_perl (you should be able to look in Apache::MyConfig to see if you have
StackedHandlers support).  

I suspect that your problem doesn't have anything to do with Apache::UploadMeter
directly though.  The message Apache provides about Apache::UploadMeter is just
a warning, not a fatal error.


Cees



[ANNOUNCE] Apache::UploadMeter-0.21

2002-02-03 Thread Issac Goldstand

The URL

http://prdownloads.sourceforge.net/apache-umeter/Apache-UploadMeter-0.21.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/I/IS/ISAAC/Apache-UploadMeter-0.21.tar.gz
  size: 7293 bytes
   md5: c2b830b7a6204d40050946c5d84c9583


Also available on SourceForge (see above URL).
SourceForge project homepage http://sourceforge.net/projects/apache-umeter

 Issac

Release Notes  ChangeLog:

*Notes:*
The following Perl libraries are now required:
  Format::Number
  Format::Date

I hope to remove these dependancies as soon as I can get formatting done in XSL



*Changes:*
UploadMeter_port.patch:  Adds the port number to the generated Refresh URL

UploadMeter_finished.patch:  Stops the Meter from Refreshing endlessly
when the upload is complete

UploadMeter_starttime.patch:  Adds the time the upload started to the
output to allow upload rate calculations

(Patches submitted by Cees Hek )
###
XSLT + XML Patch submitted by Cees Hek 
Started migrating internal calculations to XSLT
Updated Schema (switch from DTD to xsd)
###
0.21 : Feb   3, 2002 - Prebundled basic skin on sourceforge.  Migrate from DTD to 
schema.  Time/Date formatting currently server-side.






[ANNOUNCE] Apache::UploadMeter-0.17

2002-01-13 Thread Issac Goldstand

The URL

http://prdownloads.sourceforge.net/apache-umeter/Apache-UploadMeter-0.17.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/I/IS/ISAAC/Apache-UploadMeter-0.17.tar.gz
  size: 6182 bytes
   md5: 184038fd7ce8255c1591f0ec4f5eff25

No action is required on your part

Also available on SourceForge (see above URL).
SourceForge project homepage http://sourceforge.net/projects/apache-umeter

  Issac





RE: [ANNOUNCE] Apache::UploadMeter-0.15

2002-01-08 Thread eCap



So if I have two 
different html forms that perform uploads, can I define two different forms in 
the httpd.conf file?



-Original Message-From: 
Issac Goldstand [mailto:[EMAIL PROTECTED]]Sent: Monday, January 
07, 2002 10:08 PMTo: [EMAIL PROTECTED]Subject: [ANNOUNCE] 
Apache::UploadMeter-0.15

  Finally, after a month of being bogged down on [EMAIL PROTECTED], the barriers have being 
  cleared and Apache::UploadMeter's hit CPAN!
  
  The URL http://telia.dl.sourceforge.net/apache-umeter/Apache-UploadMeter-0.15.tar.gzhas 
  entered CPAN as file: 
  $CPAN/authors/id/I/IS/ISAAC/Apache-UploadMeter-0.15.tar.gz size: 
  5781 bytes md5: 635457cab775fa4c169d74180b9219f6No 
  action is required on your partRequest entered by: ISAAC (Isaac 
  Goldstand)Request entered on: Tue, 08 Jan 2002 06:04:40 GMTRequest 
  completed: Tue, 08 Jan 2002 06:05:08 GMT
   Issac
  


Re: [ANNOUNCE] Apache::UploadMeter-0.15

2002-01-08 Thread Issac Goldstand

Eventually, yes, but unfortunately not yet.  Until the configuration for 
_one_ meter isn't 100% stable, I'm not going to set up multiple meters. 
 But it is the first thing on the ToDo list after it becomes stable.

  Issac

eCap wrote:

 So if I have two different html forms that perform uploads, can I 
 define two different forms in the httpd.conf file?

  

  

  

  -Original Message-
 *From:* Issac Goldstand [mailto:[EMAIL PROTECTED]]
 *Sent:* Monday, January 07, 2002 10:08 PM
 *To:* [EMAIL PROTECTED]
 *Subject:* [ANNOUNCE] Apache::UploadMeter-0.15






[ANNOUNCE] Apache::UploadMeter-0.15

2002-01-07 Thread Issac Goldstand



Finally, after a month of being bogged down on [EMAIL PROTECTED], the barriers have being 
cleared and Apache::UploadMeter's hit CPAN!

The URL http://telia.dl.sourceforge.net/apache-umeter/Apache-UploadMeter-0.15.tar.gzhas 
entered CPAN as file: 
$CPAN/authors/id/I/IS/ISAAC/Apache-UploadMeter-0.15.tar.gz size: 5781 
bytes md5: 635457cab775fa4c169d74180b9219f6No action is 
required on your partRequest entered by: ISAAC (Isaac Goldstand)Request 
entered on: Tue, 08 Jan 2002 06:04:40 GMTRequest completed: Tue, 08 
Jan 2002 06:05:08 GMT
 Issac



[ANNOUNCE (sort of)] Apache::UploadMeter-0.15

2002-01-03 Thread Issac Goldstand

Since I'm still waiting after a month for a PAUSE account (apparantly 
there's some major hold-up at [EMAIL PROTECTED]), I've released 
Apache::UploadMeter on sourceforge.net

The project homepage is http://sourceforge.net/projects/apache-umeter

Version 0.15 is out, but it's still Alpha, since I'm still having 
trouble getting the configuration to work properly, but due to the fact 
that I haven't had the time to give it proper attention, I decided to 
release it anyway, and if anyone wants to patch it for me, I'll make a 
working Beta release of it.

Questions/Comments welcome.

  Issac





RFC: Apache::UploadMeter

2001-10-22 Thread Issac Goldstand



I need to make an upload meter for a project that 
I'm working on, and was wondering if it was worth making a generic one and 
puting it under the Apache::* namespace (probably Apache::UploadMeter). 
The reason that I'm asking is because it's going to need a rather extensive 
configuration to implement - it needs to use different parts of the request 
chain for 3 seperate locations (the form with the INPUT FILE tag, the 
script that processes it, and the location for the "meter"). It will also 
require several manual additions to the HTML that must be done (to some extent, 
at least) outside mod_perl (JavaScript code to open a popup browser window to 
display the "meter"). Do people here think it would be worth building such 
a tool?

I'd love some feedback before I try racking my 
brains trying to figure out the easiest way to implement this... Thanks in 
advance.

 Issac

Internet is a wonderful mechanism for making a fool 
ofyourself in front of a very large audience. 
--Anonymous

Moving the mouse won't get you into 
trouble... Clicking it might. --Anonymous

PGP Key 0xE0FA561B - Fingerprint:7E18 C018 D623 
A57B 7F37 D902 8C84 7675 E0FA 561B