Symptoms
We cannot find the way to specify type types allow for attachment.
The requirements are the same with the K2 Ticket Attachment, to specify file size and file types.
Click 'Upload' to commit. The maximum upload size is 2MB.
The following file extensions are allowed: doc, docx, jpg, jpeg, log, pdf, png, rar, txt, xls, xlsx, zip, 7z.
Could you please let us know how setup limitation of attachment files?
Diagnoses
Before SmartForms 4.6.11, there is no way for user to directly modify an attachment control's file size and file types via K2 Designer.
Resolution
To change the attachment control file size limit, the web.config in the following location will have to be modified:
• C:Program Files (x86)K2 blackpearlK2 smartforms Designer
• C:Program Files (x86)K2 blackpearlK2 smartforms Runtime
After changing the web.config file, perform a iisreset and restart the K2 blackpearl service.
Reference:
http://help.k2.com/onlinehelp/k2smartforms/userguide/1.0.4/webframe.html_SF_-_ViewControls_-_File_Attachment.html_size
To limit the file types, user will have to manually implement validations in the form or view to check the file extension.
Community solution:
http://community.k2.com/t5/K2-blackpearl/Restriction-for-the-file-type-in-file-attachment-control/m-p/77778_M22720