Loading Zipped Folder of Files

#1

I have many small files to load. Is there a way curl the zipped directory and have it unzipped on the server for processing?

0 Likes

#2

@sean.summers
what does this do

File.make(<zip file url>).readObjs({serType: <serType>})

Does this return the objs you need?

0 Likes

#4

curl -v -H "Content-Encoding:zip" -X PUT --data-binary @myFile.zip https://myEnv/file/1/myTenant/myTag/mySource/myFile.zip

File.make('myFilePath').readObjs({serType: "myType"})

"Error: Unsupported content type for serialization: application/x-www-form-urlencoded
    at new C3.client.ActionError (https://myEnv/typesys/1/all.js?env=browser&compat:1130:13)
    at Object.request (https://myEnv/typesys/1/all.js?env=browser&compat:882:15)
    at Object.call (https://myEnv/typesys/1/all.js?env=browser&compat:567:27)
    at c3Call (https://myEnv/typesys/1/all.js?env=browser&compat:100:20)
    at Object._call (https://myEnv/typesys/1/all.js?env=browser&compat:2764:20)
    at Object.eval (eval at get (https://myEnv/typesys/1/all.js?env=browser&compat:3267:20), <anonymous>:5:22)
    at <anonymous>:1:73"
0 Likes

#5

It usually use

-H "Content-Type: text/csv" -H "Content-Encoding: gzip"

0 Likes

#6

I don’t think you can gzip a directory.

0 Likes