https://dms.workterra.net/viewer?Token=a8a5b72261364ffd8b0e80b1163ae0d7&key=6e2e3d7a9e58f61f98ff794cac68b3e7a48e36398214860d9b08d6026f3f2597
Case: Some of the PDF is not viewable in UI
Cause: Some of the PDF which has name in the sequence "E -Application_Verso_v1.1_1570480117439.pdf" like 2 dots are appearing in complete file name is causing the issue.
The file extension is parsed by using dot as a delimiter and getting the second element of file name array.
Correction: We are now fetching the last element of the array now each time where we will get the file extension correctly each time, regardless of the dots present in the file name.