Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
IRC
/
ClientApp
/
src
/
helpers
/
View File Name :
checkFileExtension.ts
const checkFileExtension = (file) => { let isImage = file && file.toLowerCase().match(/.(jpg|jpeg|png)$/i) !== null; let isPdf = file && file.toLowerCase().match(/.(pdf)$/i) !== null; let isXls = file && file.toLowerCase().match(/.(xls|xlsx)$/i) !== null; let isDocs = file && file.toLowerCase().match(/.(doc|docx)$/i) !== null; let index = file && file.indexOf("."); let ext = file && file.substring(index + 1, file.length); return { isImage, isPdf, isDocs, isXls, ext, }; }; export default checkFileExtension;