We are encountering a issue that if we upload corrupted docx to OneDrive by direct API, we would get an generalException error.
"error":{"code":"generalException","message":"General exception while processing"}
After investigation, if we upload the same file via OneDrive webUI, we would also get error but with more meaningful message : "CobaltAllZeroDetected".
Does anyone know how we could determine whether the generalException is caused by corrupted file or not? It is important for us to handle the exception. Thank you.