[ckan-dev] Upload using resource_create via API

Marcelo Rezende malvre at gmail.com
Fri Jan 24 16:19:22 UTC 2014


I'm trying to create a resource uploading a file via API, but return JSON
decoding error. CKAN version is 2.2a

my command line:

curl http://dados.rs.gov.br/api/action/resource_create -H
"Authorization:<my auth key>" -F upload=@/Users/rezende/Desktop/menu.json
-F package_id=testeopendata6


I did as the doc:
http://docs.ckan.org/en/latest/filestore.html?highlight=upload#filestore-api

anyone else had this problem?

-- 

Marcelo Rezende
malvre at gmail.com
http://malvre.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140124/14852d43/attachment-0002.html>


More information about the ckan-dev mailing list