Page 1 of 1

unzipping uploaded files

Posted: Fri Apr 28, 2017 10:12 am
by gnussbaum
Hello,

I currently have a ticket in with GA support but figured I'd ask here as well. We currently have a setup/form where our customers upload files to us. The associated project then uses logic based on info and appends a suffix to the document name. This works great except when a customer uploads a .zip file. We actually need the files inside the zip.

How could we unzip these files after the customer uploads them within the project?

Re: unzipping uploaded files

Posted: Tue Jul 11, 2017 2:54 pm
by Support_Rick
I thought we answered this for you .. but, do you still need help with it?

In a nutshell ...

Receive the file(s) via Secure Forms
loop through the FileList uploaded (to process one at a time)
Check to see if file is a "zip" / "compressed" file.
If it is, go through unzip function
if not, copy to destination.

Re: unzipping uploaded files

Posted: Tue Jul 11, 2017 2:59 pm
by gnussbaum
Thanks Rick, you did answer it. This post was back in April.