I added a function to EZform to take care of images submitted via a form.
It encorporates a few things discussed here:
- Checks x-png, pjpeg, and other formats
- uses move_uploaded_file function
- returns image name with width and height
- uses error class
- checks sizes, writability of destination, etc.
- unifies the saving process
Take a look here.
http://res1.stddev.appstate.edu/horde/chora/co.php/phpwebsite/core/EZform.php?r=1.11
Please reply if instructions are unclear in comments.
Matt
--
Matthew McNaney
Internet Systems Architect
Electronic Student Services
Appalachian State University
Phone: 828-262-6493
phpwebsite.appstate.edu
ess.appstate.edu
|