How to define certain file attachments accepted in ConfiForms?

Julie Summerfield April 10, 2023

I want to be able to designate an attachment field to only include .jpg, .jpeg, .tiff, .tif, .psd, .pdf and .png files. So if a .doc or .xls or .ppt, etc. are attempted to attach, the ConfiForms will indicate the message error. 

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2023

Hi

File/Attachment field in ConfiForms allows you to set the "accepts" parameter

accepts.png

https://html.spec.whatwg.org/multipage/input.html#attr-input-accept

Alex

Julie Summerfield April 10, 2023

I tried typing the appropriate MIME, but it's still allowing the ConfiForm field to submit w/a different file extension. How would I type out that I only want to be able to attach .jpeg .jpg .psd .tiff .tif .pdf .png? I have to be missing something.... :-(

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2023

Set into "accepts" parameter something like this

application/pdf,image/jpeg,image/jpg.image/psd,image/tif,image/png

Alex 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events