upload zip file and process contents

wallyhowe 25 Feb, 2016
I am successfully using the multi file upload to upload a set of images to populate an inventory.

As there can be a large number of images I am looking now to offer the option of taking a zip file of images in the file upload and processing them on the server.

I have searched the forum and FAQ's to try to find guidance on this but without success.

Is this because:
a) I am stupid and it is really so simple nobody needs guidance?
b) it is not an advisable thing to do (e.g. security wise )
c) nobody has the need
d) it is not possible with existing chrono tools
e) it is there as an option and I have missed it

Enlightenment would be my saviour.
Thanks for any help
Wallyhowe
calculus00 25 Feb, 2016
Hello wallyhowe,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I zip uploaded files?
P.S: I'm just an automated service😉
wallyhowe 25 Feb, 2016
Thanks calculus00

I had found that - the only one that came close to what i am looking for - but it is the other way round - zipping files and moving them on not receiving zipped files and unpacking/processing.

I will study it again to see if it helps though.

Wallyhowe
GreyHead 25 Feb, 2016
Hi WallyHowe,

I've never seen the question before as far as I recall.

You can probably do it with Custom Code in the On Submit event. See this StackOverFlow answer for an example. The file path will be available in the $form->files array after the Files Upload action.

Note carefully the need to sanitise the content, Once you allow zip uploading you don't know what is going to be in there!

Bob
wallyhowe 26 Feb, 2016
Hi Bob

Thanks for this - gives me a way forward, much appreciated.

Gobsmacked that it is the first mention in these forums.

Best wishes

Wally
This topic is locked and no more replies can be posted.