Skip to content

Instantly share code, notes, and snippets.

@pandauxstudio
Created April 24, 2019 04:48
Show Gist options
  • Save pandauxstudio/6e34d66130dd40a837ff56f70c717b86 to your computer and use it in GitHub Desktop.
Save pandauxstudio/6e34d66130dd40a837ff56f70c717b86 to your computer and use it in GitHub Desktop.
Allow JSON file uploads in SilverStripe CMS
SilverStripe\MimeValidator\MimeUploadValidator:
MimeTypes:
'json': 'text/plain'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment