Hi @Adeel Mirza ,
You can get the magic number of the file type you want in the file signature list, so you just need to add a condition.
https://en.wikipedia.org/wiki/List_of_file_signatures
case "50-4B-03-04":
contenttype = "text/word";
break;
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.