[ckan-dev] CKAN 2.2 file upload and package_create

Stéphane Guidoin stephane at opennorth.ca
Mon Sep 8 18:00:39 UTC 2014


Hi Milica,

To my knowledge, this cannot be done in a single call... and to be true,
you should even do a first call to check if the package does not already
exist before trying to create it.

Stéphane


On Mon, Sep 8, 2014 at 1:18 PM, Milica Knezevic <knezevic.milica at gmail.com>
wrote:

> Hi,
>
> I need to create a package which will contain several resources. These
> resources correspond to files that are uploaded to CKAN (I'm using
> FileStore). Is it possible in CKAN 2.2 to do this (create new package,
> upload files and create corresponding resources) via single api call
> package_create? I know how this can be done for resource that are linked to
> external files, but when file upload comes into play, I'm not sure if it is
> feasible using just package_create.
>
> Thanks,
> Milica
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140908/cafc6496/attachment-0003.html>


More information about the ckan-dev mailing list