having issues with uploading files over websockets