evulish
09-13-2002, 11:39 PM
Okay. I made a simple Perl script to allow people to upload images to my site. I would like to limit the filesize the person can upload. I seem to run into a problem, though. Rather than writing to the file each time it reads from the socket, it just puts the image into memory...basically allowing someone to fill up my memory and not letting me be able to check the filesize.
I use:
foreach (@data){print TEST "$_";}
After all the data is downloaded...it writes the file in it's entirity.
I can paste the whole program if required...(it's quite small...)
I use:
foreach (@data){print TEST "$_";}
After all the data is downloaded...it writes the file in it's entirity.
I can paste the whole program if required...(it's quite small...)