[ckan-dev] CKAN API Clients
Sean Hammond
sean.hammond at okfn.org
Wed Apr 25 16:09:02 UTC 2012
> > Ok, I read and re-read the filestore documentation. The following
> > snippet from [2]:
> >
> > "Provides credentials for doing operations on storage directly from a
> > client (using web form style POSTs)."
> >
> > Suggests that it should be possible to upload a file. However there
> > aren't many details and no working examples.
> >
> > The ckanclient lib also has some methods related to the storage api.
> > However they too lack any documentation or examples. The test classes
> > in [3] also don't seem to test file uploading.
>
> Hmm. I'll take a look into this soon and see if I can figure it out and
> maybe improve the docs
On looking into this, it does look as if there's some code in CKAN for
uploading files to the filestore via the API, but this code isn't
documented or tested very well, so I'd consider it unsupported for now.
I recommend you go forward with the side-loading via scp/rsync approach
that we discussed.
A number of people have asked about uploading to the filestore via the
api recently, so we may allocate some time to get this code fixed up
with proper tests and docs at some point in the next few weeks.
More information about the ckan-dev
mailing list