unzipping uploaded files

Post any question you may have in regards to GoAnywhere MFT and let our talented support staff and other users assist you.
3 posts Page 1 of 1

gnussbaum

Posts: 3
Joined: Thu Apr 06, 2017 9:06 am

Post by gnussbaum » Fri Apr 28, 2017 10:12 am
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?

Support_Rick

Support Specialist
Posts: 592
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Tue Jul 11, 2017 2:54 pm
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.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696

gnussbaum

Posts: 3
Joined: Thu Apr 06, 2017 9:06 am

Post by gnussbaum » Tue Jul 11, 2017 2:59 pm
Thanks Rick, you did answer it. This post was back in April.
3 posts Page 1 of 1