in reply to Problem with Image Uploads

Are you certain that the application is correctly presenting the form to begin with, and that valid data is being transmitted? Your sample code above is not checking the return value from the upload method to see if it is a valid value. It may be undef.

--rjray