When using the uploadfield, the maximum size for the filename is limited by the column length of the column "filename" in the ep_file_upload table. This columnsize is default set to 100 characters.
In the uploadfield is no check on whether the maximum filename size is exceeded. Therefore when a file is uploaded with a filename which is too long, a java.sql.DataTruncation exception is thrown by the database.
This validation should be done in the validateField method of the uploadfield.