
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 06:55 AM
We have a custom Service Portal that we are providing the ability for content creators to upload images directly in our custom widget. We are using nowAttachmentHandler. Right now we are doing custom checks that they only upload specific types of files. Is there a way to tell the file picker to only accept specified file types? I have found very little official documentation on nowAttachmentHandler.
Thanks in advance,
AA
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 08:03 AM
Okay, figured it out, in the file input, you can list what can be accepted...
<input type="file" style="display: none" multiple="true" ng-file-select="dropFiles($files)" class="sp-attachments-input" accept="image/,.png,.jpg,.jpeg,.svg,.gif"/>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 08:03 AM
Okay, figured it out, in the file input, you can list what can be accepted...
<input type="file" style="display: none" multiple="true" ng-file-select="dropFiles($files)" class="sp-attachments-input" accept="image/,.png,.jpg,.jpeg,.svg,.gif"/>