read compressed file in GZ format, Ex. impression-day-2019-01-22.json.gz
We have a file upload on S3 bucket in with .JSON.GZ extension. We are trying to write a script to read that file, unzip that file and then upload it to ZOHO Workdrive.
Code is below:
==========================================================
zip = invokeUrl
[
type: GET
];
zip.setFileType("zip");
file_collection = zip.extract();
info file_collection;
for each file in file_collection
{
rsp = zoho.workdrive.uploadFile(file,"dirID",file.getFileName(),true,"---");
info rsp;
}
When I execute that code, it is returning blank values.
any help will be much appreciated.
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.