A new documentation is available for Squash TM 2.0 and later versions, check it here
Note : This section applies for Squash <1.12.0. Since the 1.12.0 version, the attachment settings are available in the administration advanced settings.
Attachment parameters can be set up. By default, available attachment formats are : .txt, .doc, .xls, .ppt, .docx, .xlsx, .pptx, .odt, .ods, .odp, .pdf
In the file called "conf/services/org.squashtest.csp.tm.web.uploadfilter.config.properties", you will find two properties :
"uploadfilter.fileExtensions.whitelist" : This property corresponds to the list of authorized file extensions. Those file extensions are case-sensitive and all values are separated by a coma ',' (so far this mechanism is only a filter on this extensions : if you rename your attachment .jpeg into .doc it will be uploaded without any trouble).
"uploadfilter.upload.sizeLimitInBytes" : property corresponding to the maximum size in bytes that you can upload at once. This means if the property is set to 4000000 (about 4 Mo) you can send 1, 2, 3 etc attachments totalizing 5 Mo at once.
For the changes to take effect, you will have to restart the server.
For example, for the attachment format, you have to :
1. Reach the Squash TM installation repertory
2. Double-click on the file ‘conf’ :
3. Double-click on the file ‘services’, then open the file named "org.squashtest.csp.tm.web.uploadfilter.config.properties" in a text editor :
4. In the file opened in an appropriate editor, enter the format you want to add to the list of format by default :
FOCUS
The system is case sensitive. If you type .doc and if the file is in .DOC, the attachment will be refused.
5. Save the file. Then delete the felix-cache folder. You now have to restart the application to validate the changes.