What uploadBean?
It would help if you told us where you got this code.
The two most commonly used upload libraries for
Java are
http://jakarta.apache.org/commons/fileupload and
The O'Reilly one, found at
http://www.servlets.com. If you're using something else, you're probably not going to find a lot of people who are familiar with it so you'll need to give us better details.