[ckan-dev] File upload via API and ckanclient

Hendrik Bunke bunke.hendrik at gmail.com
Thu Apr 4 09:26:15 UTC 2013


I've submitted a pull request: https://github.com/okfn/ckanclient/pull/17

This still leaves some issues open (binary files and storage url). I'll try
to fix that next week.

regards
hendrik


On Wed, Apr 3, 2013 at 3:26 PM, Hendrik Bunke <bunke.hendrik at gmail.com>wrote:

> --On 2013-04-01 22:24, Sean Hammond wrote:
> > > Well, I was right with my assumption that _post_multipart in
> > > ckanclient is responsible (and I should have looked there in the
> > > first place). It turned out that it's missing the
> > > authentification headers. Putting them there like so:
> > >
> > >     h.putheader('Authorization', self.api_key)
> > >     h.putheader('X-CKAN-API-Key', self.api_key)
> >
> > Could you submit a pull request with this fix to ckanclient?
>
> OK, I'll try within the next days.
>
> regards
> hendrik
>
> --
> Dr. Hendrik Bunke
> http://gplus.to/hbunke
> http://twitter.com/hbunke
> http://www.hbxt.org
>



-- 
Dr. Hendrik Bunke
http://gplus.to/hbunke
http://twitter.com/hbunke
http://www.hbxt.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130404/13601d16/attachment-0001.html>


More information about the ckan-dev mailing list