Hi,

The unique constraint is not working in the following Field definition.

    Field('f_xlsfile', type='upload', notnull=True,
          requires=[
              IS_UPLOAD_FILENAME(extension='^xlsx?$',
                  error_message='Please post .xls or .xlsx Excel files 
only.'),
              IS_LENGTH(1048576*2, 1024, 
                  error_message='File size must be between 1kB & 2048kB'),
              ],
          unique=True,
          label=T('Excel file')),

-- 



Reply via email to