temp workaround to get file uploading working without crashing app