Click to See Complete Forum and Search --> : Uploading and resizing images


freefall
07-20-2004, 04:07 PM
Hello,

After coding a complete photo gallery for a client in Perl, I've run into a small problem. I cannot figure out how to let the client upload a .jpg image file to the server. Of course I have the file input to get the file path, but every time I've tried buffering and writing, I can't quite get it right.

What is the proper way to buffer an image file and write it to the server? And also, is it possible to use Perl to resize that same image and save a thumbnail?

Thank you!
- Ian Paterson

Script in question is located here:
www.demarcodesigns.com/products.pl

silent11
07-22-2004, 12:03 PM
I wrote this years ago... It still works - but I'm sure there's a better way to do it...

Good luck

freefall
07-22-2004, 12:07 PM
You're a lifesaver =)

I'll try it and if I have problems, I'll get back to you, thanks so much.

- Ian