To be completed by the original poster:
CMS Version
Version 3.3.6
Installation Method
Custom
Operating System
Instaled on Ubuntu 20
Issue
When uploading media i always get an error when the upload finishes.
SyntaxError: Unexpected token ‘<’, "<!DOCTYPE "… is not valid JSON
Ive changed the php.ini and everything looks fine, but still cant uplaod files