USDZLoader invalid zip problem

Hi everyone!

I’m working on a USDZ model but have an issue. I am getting the model from the server with fetch as a zip file. Then I unzip the file using JSZip and access to USDZ file itself. But when I tried to load the file, the loader threw an “invalid zip file” error from the fflate library. At first, I thought maybe the file was corrupted but no, I downloaded the file and everything was fine. I can’t find anything to solve this problem. Is there anyone faced with the same issue?

The USDZ file is itself a zip file. Are you sure you don’t accidentally load the already unzipped file with USDZLoader?

If not, then a live example might to understand what your code does.