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
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