I'm having some trouble getting Apache2::UploadProgress working correctly and I'm hoping someone has some experience with this module and can help me out.

Specifically the problems I'm experiencing are:

1) I'm unable to get the embedded progress bar to work at all. It seems to be constantly updating, i see a constant stream of requests and HTTP 200 responses, but nothing shows up in the output. Firebug shows the following error

[Exception... "'No Jemplate template named "progress.jmpl" available' when calling method: nsIDOMEventListener::handleEvent" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

progress.jmpl is clearly there in the same directory as the js/css files.

2) The pop-up progress bar works (making my wonder why it presumably can find that jmpl file, but the embedded handler cannot..), but after it updates itself two or three times it mysteriously stops and stays at whatever % it's at forever. (unless I manually refresh)

3) I can't change the BaseURI. According to the cpan page I should be able to customize the base URI, but after making the config changes it's still using the JS and CSS files in the extras directory of the module.

my Apache/ModPerl config:

PerlLoadModule Apache2::UploadProgress PerlPostReadRequestHandler Apache2::UploadProgress #this doesn't seem to do anything UploadProgressBaseURI /Progress Alias /Progress/ /home/my user/dev_html/Progress/

my upload script (straight from the cpan page):

use CGI; my $cgi=new CGI; print $cgi->header; print qq~ <html> <body> <script src="/UploadProgress/progress.js"></script> <link type="text/css" href="/UploadProgress/progress.css"/> <form action="ProgressScript.pl" method="post" enctype="multipart/form-data" onsubmit="return startPopupProgressBar(this, {width : 500, heig +ht : 400})"> <input type="file" name="file"/> <input type="submit" name=".submit"/> </form> <div id="progress"></div> </body> </html>~;

In reply to Apache2::Progress Bar problem(s) by cls33

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.