Change event annotation file types and size limits
- Last UpdatedApr 07, 2025
- 1 minute read
AVEVA PI Vision users can attach a single file to an event annotation. The maximum file size (approximately 7 MB by default) and file types can be configured in PI AF 2016 and later. The default file types are:
|
File type |
Allowed extension |
|---|---|
|
MS Office |
CSV, DOCX, PDF, XLSX |
|
Text |
RTF, TXT |
|
Image |
GIF, JPEG, JPG, PNG, SVG, TIFF |
To change the file types that can be attached to annotations, administrators can use the PI AF Diagnostics utility (afdiag) , found in the %pihome%\AF directory on the PI Server. Set the allowed file types using the FileExtensions parameter, and set the maximum file size using the FileMaxLength parameter. See AFDiag utility parameters for details about using this utility.
Note that because a file attachment contains additional encoding that increases the size of the request in the browser, you must increase the values for maxRequestLength and maxAllowedContentLength to approximately 1.4 times the file size limit, where 1,024 bytes = 1 kilobyte (KB). For example, to allow file attachments up to 15 MB, set the following values to:
-
maxRequestLength = 21,504 (KB)
-
maxAllowedContentLength = 22,020,096 (bytes)