[ckan-dev] Filestore API - error

Pedro Ferro pedro.ferro at gmail.com
Thu Jan 12 16:06:36 UTC 2017


Hi,

I must be doing something wrong, when I try to upload a file to CKAN trough
Filestore API



The goal is to upload a file in CKAN and create the corresponding new
Dataset, trough Filestore API.



File: /tmp/distrito_conc_escolaridade.geojson

Ckan: 127.0.0.1:5000



Following the documentation
http://docs.ckan.org/en/latest/maintaining/filestore.html



I make:

curl -H'Authorization: c72f0189-dae9-4606-9e3d-debf5b560268' '
http://localhost:5000/api/action/resource_create' --form
upload=/tmp/distrito_conc_escolaridade.geojson --form package_id="teste"



The reponse:


{"help": "http://10.0.70.130:5000/api/3/action/help_show?name=
resource_create", "success": false, "error": {"url": ["Valor em falta"],
"__type": "Validation Error"}}





At CKAN nothing is uploaded.



Anyone know what could be wrong?


Thanks,
Pedro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170112/41d61ab0/attachment-0002.html>


More information about the ckan-dev mailing list