Deleting images

Hi,

My form will contain images as attachments and each one will be about 3 to 4 MB in size. I need to be able to download these images either individually or in batches. Downloading them all as a single zip file may quickly create an enormous zip file (e.g.500 images may be over 2GB file).

Is there a way to progressively delete the images after downloading them? I’ve tried deleting the data from the data table but the image attachment seems to remain.

or, is there a way to download in batches based on submission time?

Cheers

James

Hi James,

The best way I can think of to selectively download image responses without downloading the entire collection is through the API by specifying the form’s unique ID and then either write a script to parse the output or use a download manager to make downloading files easier.

You can query the API for images for your form this way:

http://kc.kobotoolbox.org/api/v1/media?xform=pk

Find out the unique ID (pk) of your form from here: http://kc.kobotoolbox.org/api/v1/forms?owner=username

For interacting with the API you can use the command line, the HTTP links above (which always show explanations above the API result), or a tool like Postman.

Best,

Tino

···

On Wed, Feb 11, 2015 at 6:15 PM James Webley james...@gmail.com wrote:

Hi,

My form will contain images as attachments and each one will be about 3 to 4 MB in size. I need to be able to download these images either individually or in batches. Downloading them all as a single zip file may quickly create an enormous zip file (e.g.500 images may be over 2GB file).

Is there a way to progressively delete the images after downloading them? I’ve tried deleting the data from the data table but the image attachment seems to remain.

or, is there a way to download in batches based on submission time?

Cheers

James

You received this message because you are subscribed to the Google Groups “Kobo Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to kobo-users+...@googlegroups.com.

To post to this group, send email to kobo-...@googlegroups.com.

Visit this group at http://groups.google.com/group/kobo-users.

For more options, visit https://groups.google.com/d/optout.