Upload corrupted docx to OneDrive by direct API would cause generalException

Upload corrupted docx to OneDrive by direct API would cause generalException
0

Upvotes

Upvote

 Dec 05 2022
0 Comments 
New

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.