500 error when attaching files

When uploading attachments getting a 500 error as shown in the screenshots.

Any help would be appreciated.

WebSocket connection to ‘wss://hr.m/socket.io/?EIO=4&transport=websocket&sid=cR2nBJuID8EPmKG2AABE’ failed:
doOpen @ websocket.js:43

FileUploader.vue:556 POST https://hr.rt.com/api/method/upload_file 500