Menu

#88 java.sql.DataTruncation error on exceeding max filename

open
nobody
components (44)
5
2008-06-17
2008-06-17
Anonymous
No

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.

Discussion


Log in to post a comment.

Auth0 Logo