Here I am having file types and download collection of file types as a zip file all the image format is working fine except "pdf" file the downloaded file contains "filename.undefined" (pdf file only). other files extension same(filename.jpg, filname.png, filename.gif)
readonly FILE_TYPE = {
"image/png": "png",
"image/jpeg": "jpg",
"image/jpg": "jpg",
"image/gif": "gif",
"image/pdf": "pdf"
};
Is this correct way mentioned pdf file type what I mentioned "image/pdf": "pdf"?
Thanks.