Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: CGI file upload

by marinersk (Curate)
on Aug 01, 2013 at 11:36 UTC ( #1047437=note: print w/ replies, xml ) Need Help??

in reply to CGI file upload

Interesting; I am unfamiliar withe the file handling mechanism you use; while I would love to advise you on that, I'll leave that to others.

Here is a snippet showing how I do my file uploads:

my $inpfsz = 0; open(RESFIL, ">$desfnm"); binmode(RESFIL); while (my $inpcnt=read($srcfnm,$inpbuf,2096)) { $inpfsz += $inpcnt; print RESFIL $inpbuf; } close(RESFIL);

You can find more detail, including some mandatory advice about the HTML that drives the upload, at

Comment on Re: CGI file upload
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2015-10-07 04:52 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (170 votes), past polls