Is there a way to only allow certain file extensions to be attached? I recently added an attachment download button in the body of an automatic email, but it only works for one attachment name or a zip file, so I want to force all attachments to be of the '.zip' extension. Is this possible via SharePoint Designer or InfoPath Designer?
As you had known, if you are designing a browser-compatible form template, you won't be able to specify which file types are allowed in the file attachment control.
In other words, if you create an InfoPath form using Blank Form (InfoPath Fillter) template, you will have that checkbox.
If you’re using InfoPath browser forms, then this option is not available and you’ll have to programmatically restrict file types for InfoPath attachments.
You can create an infopath form and use a
- Double-click the file attachment control.
- Click the Data tab.
- Under Validation and Rules, select the
Allow the user to attach only the following file typescheck box, and then, in the box, type the file extensions for the file types that you want to allow.
If I am understanding right, the real issue is files do not download correctly in your automatic emails. I will attempt to address the underlying issue and see if that helps you.
To force a file to download, use the following for the link:
Replace the items in [ ], and use the full URL in [fileurl] and that should fix your underlying issue.