Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: upload filehandle expiration

by little (Curate)
on May 24, 2003 at 10:41 UTC ( #260555=note: print w/replies, xml ) Need Help??

in reply to upload filehandle expiration

two things... will handle the file upload for you. It will check for the max allowed filesize which you can also set ( see Ovid's great CGI-course for that). It will if the file does not exceed the allowed size put it to a tmp directory from where you don't grab it but rather get it passed from
Inside your script you are creating ONE filehandle $fh. It is only referenced to inside the scope of your foreach loop. With every run it gets a new upload file associated with. Once you leave your foreach it is out of scope , the $fh is not referenced anymore and will be cleaned up by perls garbage collection.

Have a nice day
All decision is left to your taste

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://260555]
[Discipulus]: I miss a bit the sunny balconny of my previous flat.. but since june to september is better facing north
[Corion]: Discipulus: Yeah, I can see that reasoning :) But spending 5 minutes in the sun today quite improved my mood :)
[marto]: lazyweb Q: so an IE window apparently opened via JS with toolbars=no, all other IE instances closed. Click a URL in an email or whatever, and it doesn't open a new window or tab.
[marto]: does JS lock down windows created via to prevent this?

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2018-03-21 11:33 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.