I have implemented a download zip file functionality in angular application. This code works fine locally. The user double clicks the downloaded zip file. This opens up the archive, the user then double clicks the file inside this opens up correctly. However when this application is deployed on AWS linux server, when user opens the archive and double clicks the file inside it to open it, it throws an error as “file corrupt”. However unzipping the folder manually and then double clicking the file inside it opens up the file.
I have tried multiple ways but this error seems to persist. Has any one faced such an issue? Let me know your ideas.
Can’t upload code due to data security restrictions here.