[Vuejs]-How to accept multiple file types in swal sweetalert

0👍

You need to separate your meme types by a comma , just like this:

swal({
  title: 'Select file',
  input: 'file',
  inputAttributes: {
    'accept': 'image/*,application/pdf,application/vnd.ms-powerpoint,application/msword',
    'aria-label': 'Upload your profile picture'
  }
})

Codepen: https://codepen.io/anon/pen/pGENrg?&editable=true

You can find a list of meme types here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types

Leave a comment