Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Trouble with browser file upload for large files

by Baz (Friar)
on May 28, 2002 at 23:21 UTC ( [id://169931]=note: print w/replies, xml ) Need Help??


in reply to Re: Trouble with browser file upload for large files
in thread Trouble with browser file upload for large files

I tried switching off output buffering by adding
select(STDOUT); $| = 1;
at the start of my code, and by putting
print "."
in the while loop (above) which is writing to the upload file. I though this would print dots during the course of the upload, but it doesn't, why not?

Replies are listed 'Best First'.
Re: Re: Re: Trouble with browser file upload for large files
by cLive ;-) (Prior) on May 29, 2002 at 00:23 UTC
    try adding a newline:
    print ".\n";

    cLive ;-)

    --
    seek(JOB,$$LA,0);

      Unfortunately that didn’t work either...

        Aside from turning output buffering off, you'll need to do a print $cgi->header(); and print the <html> and <body> tags before you start printing your dots - when I last did this I used hashes (#) because they're a bit easier to see!

      Even though I've turned off output buffering the browser isn't displaying the next page until the complete upload is complete....my code is as follows
      print $query->header(-Refresh=>'5;URL=http://baz.perlmonk.org/main.cgi +'); print $query->start_html("Submission Added");
      would the refresh be switching the buffering back on?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://169931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-28 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found