How do I extract zip file downloaded through AJAX request?

Get help using Construct 2

Post » Mon Jul 31, 2017 11:15 am

I understands how to download a single file through AJAX object. But I want to download a bunch of files(project files) in a single request and then extract it into a folder. I think downloading a zip file would be easy as any other file using AJAX call, but how to extract it?
B
8
Posts: 16
Reputation: 332

Post » Thu Aug 03, 2017 9:04 pm

You would have to use an external library like https://stuk.github.io/jszip/
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Fri Aug 04, 2017 4:43 am

You can also have an external script like a BAT file or CMD file - depending on the platform you're developing for (I assume it's Windows?).

I have made things like this to extract files, run printers, create compressed files and upload to places... all usually done with some BAT files or winscripts. Just use NWjs to execute the script. Unfortunately this won't work for mobile platforms... but then again neither do zip files do they?

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests