- Data Type
- File Name
- Allowed Types
- Max Size
- Show Information
- Tab Index
- Conditional Format
- When the control raises an event
The web.config file for the K2 runtime site holds the option to specify a maximum file size and a list of file types not supported by this control. These are supported by K2 Business Apps as well. Check K2’s documentation at: https://help.k2.com/onlinehelp/k2cloud/userguide/current/default.htm#create/K2Designer/Controls/FileAttachment/FileAttachmentControl.htm
When no file is selected, the watermark is shown. If a file is set it shows some information about the file and, if allowed, the option to remove the file. Tapping an empty control allows you to select a file from your file system. Tapping a control that holds a file either opens the viewer for that file or, if K2 Business Apps does not support the file type, allows you to pick an app to open the file with.
When a control holding a PDF or image file is tapped, the in-app viewer shows the file. If the PDF contains multiple pages, you can swipe left/right on the screen or use a slider at the bottom to navigate between the pages. You can pinch to zoom. Once zoomed in, you can pan over the page using one finger.