supermedium / beatsaver-viewer

⚔️ Web-based viewer for Beat Saver maps, built with A-Frame and JavaScript.
https://supermedium.com/beatsaver-viewer/?id=811-535&difficulty=Expert
MIT License
193 stars 33 forks source link

Passing A Zip URL Not Working #39

Closed chaonan99 closed 4 years ago

chaonan99 commented 4 years ago

I tried to pass a zip url like this:

https://supermedium.com/beatsaver-viewer/?zip=https://cors-anywhere.herokuapp.com/https://www.dropbox.com/s/a9i42wtyqtfe8xg/2d3e1bc0-215e-47b3-9d8a-4a505794f4ac.zip?dl=1

But it stuck at the downloading step. The console outputs an error below:

Uncaught TypeError: Cannot read property 'buffer' of undefined
    at ZipLoader.extractAsText (build.js:266)
    at ZipLoader.extractAsJSON (build.js:266)
    at build.js:259
    at Array.forEach (<anonymous>)
    at build.js:259
    at Array.forEach (<anonymous>)
    at i.processFiles (build.js:259)
    at ZipLoader.<anonymous> (build.js:259)
    at ZipLoader.dispatch (build.js:266)
    at XMLHttpRequest.xhr.onload (build.js:266)
chaonan99 commented 4 years ago

This is because the structure of my zip file is not correct.